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.

ColumnSeries.TooltipTemplate returns object reference error

Thread ID:

Created:

Updated:

Platform:

Replies:

130887 Jun 8,2017 08:52 AM Jun 9,2017 07:11 AM Xamarin.Forms 1
loading
Tags: SfChart
Mark
Asked On June 8, 2017 08:52 AM

Hi guys,

It appears that I cannot get the tooltip template to work in Xamarin Forms as I keep getting System.NullReferenceException: Object reference not set to an instance of an object

            <chart:ColumnSeries EnableAnimation = "true" Color="#3366CC" ItemsSource="{Binding ChartData}" XBindingPath="YearEndDate" YBindingPath="Cash" Label="Cash" EnableTooltip ="true">
                <chart:ColumnSeries.DataMarker>
                        <chart:ChartDataMarker ShowMarker="True" ShowLabel="False" MarkerColor="#3366CC" MarkerBorderColor="White" MarkerType="Ellipse"/>
                    </chart:ColumnSeries.DataMarker>
                <chart:ColumnSeries.TooltipTemplate>
                    <DataTemplate>
                        <StackLayout Orientation="Horizontal">
                            <Label Text="My Money:" />
                            <Label Text="{Binding Cash}"/>
                        </StackLayout>
                    </DataTemplate>
                </chart:ColumnSeries.TooltipTemplate>
            </chart:ColumnSeries>

Could someone please help me with this?


Saravana Pandian Murugan [Syncfusion]
Replied On June 9, 2017 07:11 AM

Hi Mark,

Thanks for using Syncfusion products.

It seems like the bug appears when using Xamarin.Forms 2.3.5.239-pre3 (prerelease version). Usually we don’t test our components against prerelease versions of Xamarin.Forms. This issue doesn`t occur in stable version. So we kindly request you to use the Xamarin.Forms latest stable version (2.3.4.247) to overcome this issue.

We have attached sample for your reference which can be downloaded from the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/130887/ze/TooltipTemplateSample1806306125

Please let us know if you are using prerelease version for any specific reasons. So that, we can provide you the custom assemblies built with that version of Xamarin.Forms.

Regards,
Saravana Pandian 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.

;