I’ve got a very simple chart which displays one or more X Y line series.
The X Axis is an integer representing the relative time at which a value (sample) was read from a piece of hardware (for example, 10 samples at a 250 mS sampling rate represents 2.5 seconds). The Y Axis represents a percentage from 0 to 100.
I’m trying to get the X axis to display grid lines, ticks and labels at reasonable intervals. By reasonable I mean I’d like nicely rounded numbers (no more 0.42, 0.48, 0.54 – I want 0.40, 0.45, 0.50).
The label’s width should be taken into consideration when deciding when to fire a GetAxisLabel event (and thus where to place a label).
Finally, when the user zooms the chart, I need the above to adjust to again show reasonable labels at reasonable intervals. I’ve used other charting components that handle this stuff automatically – I hope TeeChart can as well!
I’m using the version of TeeChart that comes with Rad Studio XE3.
TIA!