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.
Unfortunately, activation email could not send to your email. Please try again.

NullPointerException in iOS with tooltips

Thread ID:

Created:

Updated:

Platform:

Replies:

123648 Apr 6,2016 10:16 AM Apr 7,2016 08:23 AM Xamarin.Forms 1
loading
Tags: SfChart
Paco Gómez
Asked On April 6, 2016 10:16 AM

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.

Gobi M [Syncfusion]
Replied On April 7, 2016 08:23 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;