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
40
LineSeries with DateTime X-Axis
posted

Hello,

I am trying to display a line series based on time, and from reading in the forums it seems that it is not an available option, as the Label parameter maps only to strings.

Using the 2011.1 release I noticed a DateTimeAxis and DateTimeDataPoint element, but no examples of their use and failed to use them in a naive way.

Could you approve my assumption or give a simple example of a DateTime chart?

Most basic example would be:

        <Chart:XamWebChart>
            <Chart:XamWebChart.Series>
                <Chart:Series ChartType="Line" DataSource="{Binding Values}" DataMapping="Label=Date; Value=Value">
                </Chart:Series>
            </Chart:XamWebChart.Series>
        </Chart:XamWebChart>

Thanks

Parents Reply Children
No Data