Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MikeHarris105/729f13c62ca14e152dba5a3144638ded to your computer and use it in GitHub Desktop.
Save MikeHarris105/729f13c62ca14e152dba5a3144638ded to your computer and use it in GitHub Desktop.
highchart-with-highchart-key-and-object-value
{
highchart: {
chart: {
style: {
color: "#b9bbbb"
},
},
series: [{
color: "#108ec5",
name: "New York",
data: [17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
}, {
color: "#52b238",
name: "Berlin",
data: [13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
}, {
color: "#ee5728",
name: "London",
data: [11.9, 15.2, 17.0, 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 that is also an object we take that as the payload

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