when i use solution that writen in ofc orginal site for using ajax to reload chart
i see this:
after refresh the chart and show the new chart, chart data will be cleared

Comments

esmailzadeh’s picture

how we can use ajax with this module to reload the flash chart?

rho_’s picture

It seems to me that some of the functionality in the original OFC API is not present in this module. At least I was unable to get any ajax calls to occur as specified here. The method this module uses to build the graph seems to be semi-non-standard to the typical usage of OFC API, and seems to follow something more like this. I was however able to get the desired effect by writing a bit of jquery that would re-build the entire graph, with the changes that I wished to occur (based on an event), and replace the container holding the graph with the newly built one. You'll need a menu callback for this, and be willing to play with a bit of jquery.

rho_’s picture

I did a short writeup on this solution here.

jvandervort’s picture

Status: Active » Closed (fixed)

Not a bug, just an implementation choice with a workaround as @rho_ suggests.

Marking as closed for now. With the new ofcv2 starting to shape up, I expect the api
to change quite a bit.