We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

X-axis interval

Thread ID:





28349 Apr 29,2005 03:38 PM UTC Apr 29,2005 03:57 PM UTC WinForms 1
Tags: Chart
Daniele Fusi
Asked On April 29, 2005 03:38 PM UTC

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

Davis Jebaraj [Syncfusion]
Replied On April 29, 2005 03:57 PM UTC

Hi, Please try setting the Indexed property of the ChartControl to be true. _chart.Indexed = true; The Indexed property tells the Chart to ignore the values along the X axis and only treat them as indexed labels. Regards, Davis


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon