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
570
AxisLabelsLocation OutSideRight fails with object reference not set to instance.
posted
// XAxis
 CategoryXAxis xmXAxis = new CategoryXAxis();
xmXAxis.ItemsSource = mDataColl[0];
xmXAxis.Label = "{xAxis:ss.fff}";
xmXAxis.LabelSettings.Extent = 120;
xmXAxis.LabelSettings.Location = AxisLabelsLocation.OutsideBottom;


// YAxis
NumericYAxis xmYAxis = new NumericYAxis();
xmYAxis.LabelSettings.Extent = 55;
xmYAxis.LabelSettings.Location = AxisLabelsLocation.OutsideRight;


Xaml Code.
    <igChart:XamDataChart Name="xmDataChart" Legend="{Binding ElementName=xmLegend}" 
                              Template="{StaticResource XamDataChartControlTemplate1}" >

I guessing something to do with the template. How can I Fix this now?
Parents
No Data
Reply
  • 30692
    Offline posted

    Could very well have to do with the template. Could you show us how you have it defined? Or provide a more complete sample that replicates the issue?

    Thanks,

    -Graham

Children
No Data