Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Show pre-defined number of labels in the x-axis
posted

Hi all,

 

I am facing a problem with the winchart component. I have a series of points plotted in the graph. The y-axis values are numerics and the x-axis values are strings that represent a date in a MMM-YYYY format. Each line can have even up to 600 point. Obviously the x-axis should not display the values for all points, but instead I am trying to find how to display a pre-defined set of points (e.g. 10). Is this possible? Thanks

Parents
No Data
Reply
  • 28496
    Verified Answer
    Offline posted

    Try setting the Axis.X.TickmarkStyle property to DataInterval, and set Axis.X.TickmarkInterval = numberOfPoints / 10.  also consider setting Axis.X.Labels.Layout.Behavior = Auto and/or Axis.X.Labels.TickmarkStyle = Smart, as these settings will try to automatically reduce the number of labels displayed when there are too many.

Children