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
442
XamWebChart - X Labels not showing when using XAML, but X Labels show when using C -- What is the difference?
posted

With the following C code the contents of the X labels(String Date) are shown on a line chart using the following C:

            Series ChartIIPulls = new Series
            {
                Label = "Pulls",
                ChartType = ChartType.Line,
                DataMapping = "Label=SDate;Value=Pulls;",
                DataSource = e.Result
            };
The SDate is plotted correctly on the Chart.

==================================================================

When using the following XAML, the SDate is not plotted:

            <igChart:XamWebChart.Series >
                    <igChart:Series ChartType="Line"
                            DataSource="{Binding}"
                            DataMapping="Label=SDate;Value=Pulls;"
                            Label="Pulls" > 
                    </igChart:Series>
The C code used to connect the above code is the following:

            PullsChart.DataContext = e.Result;

Using the above code the SDate is not plotted on the chart.  Nothing shows for labels for the x axis.

Could you tell me what the difference is between the code how and show how to get the XAML code to start charting the X axis data items.

 

Thanks,

Keith

Parents Reply Children
No Data