Is there a way of programmatically set the interval value at which labels are drawn on the X-axis?
Here''s what I want to do: I must draw an area chart plotting some numeric value for each letter of a word: e.g. for "sample" I''ll add a point for "s", another for "a", "m", "p" etc. Thus the points have 1 meaningful value only, the Y value, while the X value is just the index of the character in the string (0 for "s", 1 for "a", etc.). I''d like the X-axis show each character as the label for the corresponding point: "s" for the value of "s", "a" for the value of "a", and so forth. In the attached sample I have tried to draw such a chart, but I cannot manage to have the value labels ("s", "a", "m", etc) drawn in synch with the Y values. Could you please give a hint or modify the sample to works as desired? (see comments in code).
Thank you in advance!
Chart1_564.zip