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
1405
LineChart with TimeAxisStyle of Continuous
posted

Alright,

I'm trying to set up a chart with the following properties:

 

            Chart.Axis.X.TimeAxisStyle.TimeAxisStyle = RulerGenre.Continuous;

            Chart.Axis.X.TickmarkStyle = AxisTickStyle.Smart;

            Chart.Axis.X.TickmarkIntervalType = AxisIntervalType.Minutes;

            Chart.Axis.X.TickmarkInterval = 1; 

 

My problem is that I do not understand the LineChart well enough to understand how it lays out its data points. Currently I am binding to a dataset with the first column as the series label, and the rest as item labels. I would like your suggestions on how to set up the graph to display as per the above properties with say.. starting at 9am and running until 5pm. I would like to see labels on the x-axis every 15 minutes with the ability to plot data points every minute in between the labels. Can this be done?

 

Thanks in advance. 

 

 

Parents
No Data
Reply
  • 9298
    posted

    Richard,

    Smart axis style determines the interval on its own so you can't use Smart Axis Style and set an interval at the same time.  This is what I suggest:

    Set up a datasource that has DateTime columns.

    Set TickmarkIntervalType=Minutes, TickmarkStyle=DataInterval, TickmarkInterval=15 (because you want labels every 15 minutes)

    Set chart.Data.SwapRowsAndColumns=true

    Set chart.LineChart.TreatDateTimeAsString=false

    I hope this helps.

    Michael S.

Children