views:

138

answers:

0

I'm looking for a web charting library for use with python that has drill-down/clickthrough support for a django project. (Clicking on a portion of the chart, triggers an event/refresh to display new data based on the data point clicked).

Something like what is seen here:

http://blogs.adobe.com/flexdoc/2007/03/chart_data_drill_down_examples.html

Currently, I'm looking at OpenFlashChart2 and pyofc2.

I've found that it supports clickevents:

http://teethgrinder.co.uk/open-flash-chart-2/line-on-click.php

I'm planning to implement this in the following way:

  1. write javascript to define click events for each point, that send JSON to a django view

  2. In the django view process the JSON click information and refresh the page/chart to update the chart appropriately. (by sending JSON to the chart component?)

Is this the proper approach to handle 'drill-down' support? (Before I spend tons of time implementing this, I heading in the right direction?)

Is there a better library for this?