Setting XValue of TCursorTool
Posted: Sun Feb 13, 2005 6:48 pm
Hey
I have a TChart on my form and it displays 2 series and a third (hidden) one. Now I have a TCursorTool (snapping and vertical style only) which can be used to select a datapoint. I have datapoints every 15 seconds (timescaled axis). I save the selected point in a database (time-value).
But if I want to reload that chart (for editing), I have absolutley no idea how to set the CursorTool at the estimated point. I know, that for 04:15, it should be the 17th point of the chart. But if I set XValue to any value, it is at the end of my datapoints or at the beginning. I have tested putting out XValue when I move my CursorTool-line and I get very small values (0.00xxxx). I have absolutely no idea how this value is calculated.
Screenshot (like it should be after reloading)
Thanks for any assistance
Edit: Using Delphi 7 with TeeChart Pro 6.01
I have a TChart on my form and it displays 2 series and a third (hidden) one. Now I have a TCursorTool (snapping and vertical style only) which can be used to select a datapoint. I have datapoints every 15 seconds (timescaled axis). I save the selected point in a database (time-value).
But if I want to reload that chart (for editing), I have absolutley no idea how to set the CursorTool at the estimated point. I know, that for 04:15, it should be the 17th point of the chart. But if I set XValue to any value, it is at the end of my datapoints or at the beginning. I have tested putting out XValue when I move my CursorTool-line and I get very small values (0.00xxxx). I have absolutely no idea how this value is calculated.
Screenshot (like it should be after reloading)
Thanks for any assistance
Edit: Using Delphi 7 with TeeChart Pro 6.01