Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MikeHarris105/e16c1ad9ae3f2f24ea91b1a6350524d6 to your computer and use it in GitHub Desktop.
Save MikeHarris105/e16c1ad9ae3f2f24ea91b1a6350524d6 to your computer and use it in GitHub Desktop.
Highchart: A string of JavaScript2
{
highchart: "{\"chart\":{\"style\":{\"color\":\"#b9bbbb\"}},\"series\":[{\"color\":\"#108ec5\",\"name\":\"New York\",\"data\":[17,22,24.8,24.1,20.1,14.1,8.6,2.5]},{\"color\":\"#52b238\",\"name\":\"Berlin\",\"data\":[13.5,17,18.6,17.9,14.3,9,3.9,1]},{\"color\":\"#ee5728\",\"name\":\"London\",\"data\":[11.9,15.2,17,16.6,14.2,10.3,6.6,4.8]}]}"
}
@MikeHarris105
Copy link
Author

A string of JavaScript which we eval and if that is an object with a key highchart with a value that is a string we eval that and take it as the payload

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