SKSanjith Kesavan Syncfusion Team November 17, 2015 06:24 AM UTC
Hi jinchul oh, Thanks for contacting Syncfusion support. The “preRender” event will trigger whenever the chart is redrawn, the legend click event will redraw the chart so the preRender will trigger again. In your sample we found that you have set the series visibility as "hidden" in the preRender event and in the legendItemClick event you have set the visibility of the series as "visible" and thus the issue. To avoid this please set the series visibility as "hidden" directly while creating a series.
For setting the series visibility as hidden please use the following code example [JS] name: 'Wastage', fill: "#34495E", opacity: 0.7, visibility: "hidden" In the above code example we have set the visibility of the series as hidden. So when the chart is rendered particular series is hidden. Please find the below screenshot
If the legend is clicked then the chart is visible. Please find the below screenshot.