Closed (fixed)
Project:
Open Flash Chart API
Version:
5.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2008 at 14:47 UTC
Updated:
7 May 2009 at 15:47 UTC
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
Comment #1
esmailzadeh commentedhow we can use ajax with this module to reload the flash chart?
Comment #2
rho_ commentedIt 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.
Comment #3
rho_ commentedI did a short writeup on this solution here.
Comment #4
jvandervort commentedNot 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.