We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make examples to demonstrate usability
The text was updated successfully, but these errors were encountered:
First example provided in 5f15bf0. g2.chart is accepting functions (e.g. Math.sin), which is not supported by JSON.
g2.chart
Math.sin
We could add some kind of parsing here, for example the ability for g2.chart to accept strings like "sin", "cos", "PI" etc. to be handled accordingly.
"sin"
"cos"
"PI"
Sorry, something went wrong.
The most simple way here would be to use eval ... but it's evil.
eval
I also would like to have normal strings in JSON data and interprete them like template strings.
I once read a discussions about that:
https://stackoverflow.com/questions/29182244/convert-a-string-to-a-template-string https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#Never_use_eval!
The Function related solution sounds promising ... try it.
klawr
No branches or pull requests
Make examples to demonstrate usability
The text was updated successfully, but these errors were encountered: