Hi,
On the client side, I am trying to rerender the chart with different values without going to server. First I destroied the original chart by using the destroy() method, after that , I recreated the div element by using document.createElement(), then try to redraw the chart, but I can't redraw the chart. Could you give me some advice? Thanks!
Wendy

Redraw problem is solved
I found the solution to solve the redraw.
The logic is like the following:
1. destroy the original widget
2. recreate the div element with the same id,
3. append this element to the parent.
4. create the chart.
Why not reuse the chart
Why not reuse the chart widget, but change axes, plots and series? And you can regenerate series calling fullRender() on the chart member of the widget.
related: cant get rid of series
I can't seem to get rid of old series in chart2d. I tried chart.destroy(), but firebug says that the series[] is still populated, and indeed when I redraw the chart, the data is still there. I tried just obliterating series=[], but that crashed, of course.
If there is an addSeries() and an updateSeries() method, why isn't there a removeSeries() method?
thanks
Good question. I filed an
Good question. I filed an enhancement ticket: http://trac.dojotoolkit.org/ticket/6714