PieChart :: How to remove chart before create another one?

Sep 19, 2012 at 5:37 PM

Hi!

I want to generate my chart only when I hit a specific button.

At this time the chart refresh every time I do something in page (I dont want it...) and when I hit the button for the 2nd (or 3rd or 4th or...) time a new chart is generated on top of the old one.

Can you help me?

Sep 24, 2012 at 10:55 AM

Anyone? =(

Sep 24, 2012 at 3:27 PM

I solve the problem destroying the old chart calling the Clear() in chart Series, like this:

            if (hcCircularChart.Series != null && hcCircularChart.Series.Count > 0)
            {
                hcCircularChart.Series.Clear();
            }
It's easy but the lake of documentation make this difficult...

Anyway, I still need to know how can I make the chart not refreshing every time a postback occured.

Anyone?