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

Allow custom options to use in plotters #938

Open
olivier-monaco opened this issue Jul 19, 2018 · 1 comment
Open

Allow custom options to use in plotters #938

olivier-monaco opened this issue Jul 19, 2018 · 1 comment

Comments

@olivier-monaco
Copy link

I would like to give options to one of my plotter but giving a non declared option to Dygraph throw an exception (only once so one chart does not work but others in the same page work). I found no way to extends the OPTIONS_REFERENCE array. Is there a way?

This could be usefull for smoothPlotter, for example, to have different smoothing option for each chart in a page.

@olivier-monaco
Copy link
Author

Current work around is to comment the following line in DygraphOptions.prototype.warnInvalidOption_:

        throw "invalid option " + optionName;

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

No branches or pull requests

1 participant