Last active
January 8, 2021 09:57
-
-
Save MikeHarris105/e16c1ad9ae3f2f24ea91b1a6350524d6 to your computer and use it in GitHub Desktop.
Highchart: A string of JavaScript2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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]}]}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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