Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting options in AJAX requests #280

Open
georgeu2000 opened this issue Aug 5, 2016 · 4 comments
Open

Setting options in AJAX requests #280

georgeu2000 opened this issue Aug 5, 2016 · 4 comments

Comments

@georgeu2000
Copy link

How to set tooltips?

@ankane
Copy link
Owner

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.

@georgeu2000
Copy link
Author

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
Copy link
Owner

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 How to set tooltips? Setting options in AJAX requests Jan 8, 2017
@rozhok
Copy link

rozhok commented Aug 12, 2018

The async feature is completely useless when you have multiple series with custom names on them. Huge +1 for this enhancement to be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants