TeeChartScrollbar: problem with zoom in
Posted: Tue Feb 05, 2008 2:42 pm
Hello,
i've a problem with the TeeChartScrollBar. I've got a simple dataset with two fields: X (TDateTime) and Y (Integer). The minimum of X is today, the maximum is 100 days from today. I've connected a TeeChartScrollbar to the chart with the following properties: Axis = sbDefault; Align = alBottom; Kind = sbHorizontal. When I run the application everything looks good, but when i zoom in on the chart the values on the X-axis change to dates around 1900. The same things happened when I changed the X-axis from TDateTime to integer values, but it only occurs with large numbers (>30000).
I've tried to track the problem and it seems that the ScrollAxis(Axis:TChartAxis) inline procedure sets uncorrect values for my X-axis.
Can you explain how I can fix this problem? Im using TeeChart Pro 7.12. If necessary I can provide you with an example which you can run "as is".
Greetings,
Marcel.
i've a problem with the TeeChartScrollBar. I've got a simple dataset with two fields: X (TDateTime) and Y (Integer). The minimum of X is today, the maximum is 100 days from today. I've connected a TeeChartScrollbar to the chart with the following properties: Axis = sbDefault; Align = alBottom; Kind = sbHorizontal. When I run the application everything looks good, but when i zoom in on the chart the values on the X-axis change to dates around 1900. The same things happened when I changed the X-axis from TDateTime to integer values, but it only occurs with large numbers (>30000).
I've tried to track the problem and it seems that the ScrollAxis(Axis:TChartAxis) inline procedure sets uncorrect values for my X-axis.
Can you explain how I can fix this problem? Im using TeeChart Pro 7.12. If necessary I can provide you with an example which you can run "as is".
Greetings,
Marcel.