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
240
WebChart - Stepline Chart - repeating dates (labels) on X axis
posted

When creating a stepline Chart for a 5 day timeframe, my dates across the X Axis appear twice.  I only want the lines to appear at the point of the data....not on the intermediate lines in between.

All other timeframes (10 days, 30 days, etc) work fine. 

The data does NOT contain the same date twice.

Any ideas on how to fix this?

 

  • 26458
    Verified Answer
    Offline posted

    This happens because the axis range is rather small. If you were to use a format string that included date and time you'd see that even though the dates are the same, the times are different. If you want to display labels only where you have data points use the following:

    UltraChart1.Axis.X.TimeAxisStyle.TimeAxisStyle = RulerGenre.Discrete;