Hi,
I was using TChart and got a strange problem. I'm not sure if I post it in the correct place since the titile of this sub-board is "TAChart".
Ok, Let's make it short. I want to show data (Stored in ListChartSource1) in Chart1. all of the y values less than 20 are actually "missing data". So I set these properties:
chart1.Series.add(ListChartSource1);
chart1.AxisList[0].Range.Min:=20;
chart1.AxisList[0].Range.UseMin:=True;
*They were set via the Lazarus IDE, not from my code. I wrote them only to avoid posting one more screenshot picture and save a little bit disk storage of this forum.*
I hope the minimum y value shown on the chart1 is 20, all of the value less than 20 are "below the bottom axis", which can not be seen, which would not occupy the chart1's screen extend.
Then in my code, the main process like this:
ListChartSource1.clear;
for i:=0 to 3599 do
begin
ListChartSource1.Add(i,SourceData[i],format('%2.2d:%2.2d',[i div 60,i mod 60]));
end;
Chart1.Refresh;
But I got the minimum y value is still 0. The chart1 showed like the attachement. the wave is compacked on Y direction because the scal is 0 to 50, not 20 to 50 as I want.
Did I miss something?