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.
Yes! I finally found some documentation detailing those properties which was very helpful.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Chart_Display_Data_on_a_Time_Scale_Axis.html
And inside:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Chart_Display_Labels_at_Intervals_on_a_Time_Scale_Axis.html
I do have a few more challenges to overcome, but I've detailed them in other topics.
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.