jQuery UI Widgets › Forums › Chart › Events on 3.2.1
This topic contains 6 replies, has 3 voices, and was last updated by wcogd 9 years, 6 months ago.
-
AuthorEvents on 3.2.1 Posts
-
Hi,
I have upgraded to 3.2.1 and my Event function in a spline graph has stopped working. I can’t even trap it in debug, there is no reponse to a click event whatsoever.
It works OK on a column chart and stackcolumn however.
I see there are a lot more options in the API for line and marker fills, both for static serie and on a seleceted event.
Is it possible this could be causing the event to stop working ?
Thanks
RCW
Hi RCW,
‘click’ has never been supported for line/spline series. I am a little surprised that this has worked for you. Unfortunately, we would not be able to offer a solution here.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter
That’s interesting. Yes it worked fine in a spline chart. I think I have my own work around from previous versions so I’ll have to try that if I decide to use version 3.2.1
You can view the graph here:
http://www.ons.gov.uk/ons/interactive/ppu-2012-v2/index.html
You’ll see if you click on a series symbol in the spline chart the data is output to the right from the click event !
RCW
RCW,
I just wanted to tell you that I checked out your site, and it is fantastic! I’m a beginner with jQWidgets (and jQuery) and I hope I can create charts like yours one day. Very impressive!
I have a ton of questions, but the one that is most intriguing is the slider on the page that you linked to. I am guessing that the tabs are showing/hiding DIVs with of different chart instances… but how does the horizontal slider work? Is it calling new data from the server and redrawing the chart, or manipulating the chart directly in a way I don’t understand? 😉
Cheers!
Hi wcogd,
Thank you for the compliments – the chart is really a tribute to the power, flexibility and ease of use of jQWidgets, although I am pleased with the slider and the Y-Axis auto formatting too.
Each chart is a complete change of data and the settings within a single chart instance. The “tabs” are in fact buttons that switch all the settings from spline to stacked column chart without ever re-renderring the div – just a chart ‘refresh’.
The slider I simply hacked up from the demo. It just changes the min/max values in the categoryAxis. Once the call for data is made, a data set is per country, the X-Axis is changed in the chart settings again, so as before all done client side and with a chart ‘refresh’.
Feel free to ask any questions, I’m sure I posted the slider code to the forum somewhere so I’ll have a look for it.
RCW
RCW,
Thank you for the detailed reply… very slick! I’ll check out your slider code today…
Kind regards
-
AuthorPosts
You must be logged in to reply to this topic.