We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

NullPointerException in iOS with tooltips

Hello.

I am trying to show tooltips in the chart, but I get a NullPointerException when doing tapping.

Here is my code:

      <chart:SfChart VerticalOptions="FillAndExpand">
        <chart:SfChart.ChartBehaviors>
          <chart:ChartZoomPanBehavior/>
          <chart:ChartTooltipBehavior/>
        </chart:SfChart.ChartBehaviors>

        <chart:SfChart.Title>
          <chart:ChartTitle Text="{resources:Translate AmountSoldPerSalesperson}" Font="15"/>
        </chart:SfChart.Title>

        <chart:SfChart.PrimaryAxis>
          <chart:CategoryAxis LabelPlacement="BetweenTicks" LabelsIntersectAction="MultipleRows" LabelRotationAngle="90"
                              EnableAutoIntervalOnZooming="False" Interval="1"/>
        </chart:SfChart.PrimaryAxis>

        <chart:SfChart.SecondaryAxis>
          <chart:NumericalAxis Interval="50000" ShowMajorGridLines="False"/>
        </chart:SfChart.SecondaryAxis>

        <chart:SfChart.Series>
          <chart:ColumnSeries ItemsSource="{Binding SalesPersonsSalesStats}" XBindingPath="SalesPersonName" YBindingPath="TotalAmount"
                              EnableTooltip="True" EnableDataPointSelection="True">
            <chart:ColumnSeries.ColorModel>
              <chart:ChartColorModel Palette="Custom">
                <chart:ChartColorModel.CustomBrushes>
                  <Color>#4CADCD</Color>
                  <Color>#032335</Color>
                </chart:ChartColorModel.CustomBrushes>
              </chart:ChartColorModel>
            </chart:ColumnSeries.ColorModel>
          </chart:ColumnSeries>
        </chart:SfChart.Series>
      </chart:SfChart>

Thanks.

Fran.

1 Reply

GM Gobi M Syncfusion Team April 7, 2016 12:23 PM UTC

Hi Francisco,

 

The fix will be included in Vol 1, 2016 Service Pack 1. We could see that you have created an incident for the below query, so please follow-up the incident for further updates. 

 

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

 

Regards,

Gobi M


Loader.
Up arrow icon