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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cannot initiate custom tooltip on pie

Thread ID:





112369 Sep 19,2013 12:12 AM UTC Oct 3,2013 05:37 AM UTC JavaScript 3
Tags: ejChart
Asked On September 19, 2013 12:12 AM UTC

This is pie chart in one of the samples, "healthtracker.js".
I added an extra line to apply a custom template for the

        series: [
            points: [
                { x: 'Carbohydrate', y: 10, visible: true, interior: "#D3C1D4" },
                { x: 'Fat', y: 90, visible: true, interior: "#B26CAB" },
            type: 'pie', animation: false,
            style: { opacity: 0.8, borderWidth: 1, borderColor: "#D3C1D4" },
            pointsTooltipTemplateID: 'customTooltip',
        margin: { top: 0, bottom: 0, left: 10, right: 10 },
        showTooltip: true,
        textColor: 'Black',
        backInterior: "#122412",
        size: { height: 225, width: 225 },
        legend: { visible: false, textOption: { textColor: 'Black', font: { size: '12px' } }, position: 'bottom' }

and the tooltip template is as follows
<div id="customTemplate" class="hide custom-template">

But this is giving me a javascript error,
saying TypeError i.xAxis is undefined. These custom
tooltips work on other line charts, and if I don't include
the custom tooltip, I am able to see the default tooltip.
Is there anything im missing here!!!?

Gowrimathi S [Syncfusion]
Replied On September 20, 2013 06:40 AM UTC

Hi Pradeep

Thanks for sharing the details with us.

We have tested the reported issue with your changes and we are able to reproduce the pie chart issue. We will fix this issue and this fix will be included in version 1 of JS Essential studio release.

Please let us know if you need any further assistance.

Gowrimathi S


Replied On September 23, 2013 05:32 AM UTC

Thanks. Nope,  nothing else at this point.

Gowrimathi S [Syncfusion]
Replied On October 3, 2013 05:37 AM UTC

Thanks for the update, Please let me know if you have any further assistance

Gowrimathi S


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon