![]() |
Chart Doesn't show true values - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3) +--- Thread: Chart Doesn't show true values (/showthread.php?tid=240) |
Chart Doesn't show true values - jrmrhrb00 - 02-15-2025 In the chart function it does not show the true value. It will show a percentage and it graphs the true value, but will not show it. In the snippet if ran you will see what I mean. Code: Data["2000"]=1 It charts the data values 1,2,3 but will not show them. It does show the percentages up to 100%. Would it be possible in SetData to make values as a choice to show? Then it would show the value rather than a percentage? JR RE: Chart Doesn't show true values - litdev - 02-16-2025 Added Value and Legend_Value options to LDChart.Legend - Beta 1.2.29.17 RE: Chart Doesn't show true values - jrmrhrb00 - 02-16-2025 LitDev, If I use column the values are horizontal. Data["2000"]=1 Data["2001"]=2 Data["2002"]=3 Name=LDChart.AddChart(500,400) LDChart.Legend(Name,1,"Value","True") LDChart.Properties(Name,"Column",1) LDChart.SetData(Name, Data) This isn't bad, but would it be possible to have them verticle? Thanks, JR RE: Chart Doesn't show true values - litdev - 02-16-2025 Hi, The issue comes when there are lots of columns or the values are long, for example: Code: For i = 1 To 20 RE: Chart Doesn't show true values - jrmrhrb00 - 02-16-2025 LitDev, Didn't think of that. What if you could check the width of the column sections with the width of the value and let it choose horizontal or vertical values? Just thinking! JR RE: Chart Doesn't show true values - litdev - 02-16-2025 Could do that but may be different for different columns, what should this do? Code: Data["2000"]=1.123456573253254 Maybe like this Beta 1.2.29.18 RE: Chart Doesn't show true values - jrmrhrb00 - 02-16-2025 LitDev, That change got it. I ran it as column with normal width and it showed vertical values. Then I ran 1 value that was wider than the bar and it flipped to horizontal. Perfect! Many Thanks! JR |