mattlaver
asked on
TChart formatting X axis
Hello,
I am using the TChart to plot some data, however am having trouble formatting the X-axis. The problem is that I have an array of data from 0 to 99 which is plotted as:
for i := 0 to 99 do
chart1.Series[0].add(datad ouble[i], '', clgreen);
However this plots the data with an increment of 1 between values. I would like to increase this increment to 25 so that the scale corresponds correctly with my data, so for example the graph line would go from 0 to 2450, not 0 to 99.
There is an increment property:-
Chart1.bottomaxis.Incremen t := 25 ;
I have also set min to 0 and max to 2500.
However this does not increment each data value by 25.
Can any one help me with this annoying problem, I'm sure it is probably simple - but the on-line documentation is driving me mad!
...matt
I am using the TChart to plot some data, however am having trouble formatting the X-axis. The problem is that I have an array of data from 0 to 99 which is plotted as:
for i := 0 to 99 do
chart1.Series[0].add(datad
However this plots the data with an increment of 1 between values. I would like to increase this increment to 25 so that the scale corresponds correctly with my data, so for example the graph line would go from 0 to 2450, not 0 to 99.
There is an increment property:-
Chart1.bottomaxis.Incremen
I have also set min to 0 and max to 2500.
However this does not increment each data value by 25.
Can any one help me with this annoying problem, I'm sure it is probably simple - but the on-line documentation is driving me mad!
...matt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I will leave a recommendation in the Cleanup topic area that this question is:
accept Slavak's comment as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Thanks,
geobul
EE Cleanup Volunteer