Setting options in AJAX requests #280

georgeu2000 opened this Issue Aug 5, 2016 · 3 comments


None yet

2 participants


How to set tooltips?

ankane commented Aug 6, 2016

Hey @georgeu2000, I'm not sure there's a way to do this now, but happy to discuss how to make this possible.


OK, I dug deeper and found that I can pass options directly to the chart control using library key. However, this doesn't make sense in my use case because it is an AJAX request. So, I would want to pass the tooltips in with the chart data, not when the chart html is generate.

I think the solution is to be able to pass arbitrary data to the chart control, regardless of whether it is an AJAX request.

ankane commented Aug 9, 2016

@georgeu2000 We could add a new format to allow for options to be passed in AJAX requests, like:

render json: {data: data, min: 0, library: {...}}
@ankane ankane changed the title from How to set tooltips? to Setting options in AJAX requests Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment