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
close icon

Chart disappears when clicking on legend items, IF using custom label template.

Hi,I'm trying to use a pie chart with custom label template, as per your examples, but I've encountered this issue: when clicking on a legend element (all except the last one), the chart is dissapearing.I've used jsplayground to make a demo with this issue:http://jsplayground.syncfusion.com/ujte1nojAny idea on how to fix this?Thanks, Alex

5 Replies

AB Alexandru Boboc May 16, 2017 01:47 PM UTC

Found this related error in console:

    ERROR TypeError: Cannot read property 'style' of undefined
    at r.drawLabelTemplate (http://localhost:3000/ej.web.all.min.js:10:7347180)
    at r.drawDataLabelAcc (http://localhost:3000/ej.web.all.min.js:10:7331947)
    at Object.drawAccDisplayText (http://localhost:3000/ej.web.all.min.js:10:7508738)
    at Object._animationElements (http://localhost:3000/ej.web.all.min.js:10:7462193)
    at Object._accSeriesDraw (http://localhost:3000/ej.web.all.min.js:10:7464408)
    at Object.seriesRender (http://localhost:3000/ej.web.all.min.js:10:7466423)
    at Object.draw (http://localhost:3000/ej.web.all.min.js:10:7447290)
    at Object._doClick (http://localhost:3000/ej.web.all.min.js:10:7576613)
........................


AB Alexandru Boboc May 16, 2017 01:49 PM UTC

I'm re-posting the original post, since when trying to edit it, the formatting seems to go all nuts.

Hi,

I'm trying to use a pie chart with custom label template, as per your examples, but I've encountered this issue: when clicking on a legend element (all except the last one), the chart is dissapearing.

I've used jsplayground to make a demo with this issue:
http://jsplayground.syncfusion.com/ujte1noj

Any idea on how to fix this?

Thanks,

Alex


DD Dharanidharan Dharmasivam Syncfusion Team May 18, 2017 01:52 PM UTC

Hi Alexandru, 

Sorry for the inconvenience. 

We can able to reproduce the reported issue, so we have logged issue report for your query. Fix for the reported issue will be available on volume 2 SP 1 release, which is expected to be out in the end of May 2017.  

Thanks, 
Dharani. 



AB Alexandru Boboc May 19, 2017 01:29 PM UTC

Thank you. 


DD Dharanidharan Dharmasivam Syncfusion Team May 22, 2017 04:39 AM UTC

Hi Alexandru, 
 
Thanks for your update. As stated in our previous update, fix for the reported issue will be available on volume 2 SP 1 release, which is expected to be out in the end of May 2017. 
  
Thanks, 
Dharani. 


Loader.
Live Chat Icon For mobile
Up arrow icon