Doing Ajax with Graphos
Graphos plays well with ajax interactions. There are two ways you can replace a graph object.
- Render chart.as_html in the views. Return and replace the DOM.
- Calculate the chart.get_data, return the JSON. Redraw the chart using $.plot or equivalent.