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
909
Hour in StepLine chart
posted

Hello,

I want to display on the X axis in a stepline chart  the hours (from 0 to 23) for one day.  

like that : 0 1 2 3 4 5 6 7 8 9 10 ... 23

How can i do that?

 

Thank you in advance.

Parents
No Data
Reply
  • 26458
    Offline posted

    The step line chart displays date values on the x axis, so it's sufficient to specify the proper format for the labels. If you want to display hours only, set

    chart.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:hh>"

    However, the label itself will be based on the data you assigned to the chart's datasource, so you would need data with consecutive hour values.

Children