Skip to content

Instantly share code, notes, and snippets.

View MikeHarris105's full-sized avatar
💭
thinking about ..cricket!

Mike Harris MikeHarris105

💭
thinking about ..cricket!
View GitHub Profile
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<absolute>true</absolute>
<item>
<text></text>
<value>123</value>
</item>
<item>
<text></text>
<value>238</value>
@MikeHarris105
MikeHarris105 / highchart-with-highchart-key-and-object-value.json
Created January 8, 2021 10:48
Highcharts: JSON with a key `highchart` with an object value which we take as the payload
{
"highchart": {
"chart": {
"style": {
"color": "#b9bbbb"
}
},
"series": [
{
"color": "#108ec5",
@MikeHarris105
MikeHarris105 / highchart-with-highchart-key-and-string-value.json
Created January 8, 2021 10:34
Highchart JSON with a key `highchart` with a string value which we eval and take as the payload
{
"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
MikeHarris105 / highchart-with-highchart-key-and-string-value.json
Created January 8, 2021 10:31
Highchart JSON with a key `highchart` with a string value which we eval and take as the payload
{
"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
MikeHarris105 / highchart.json
Last active January 8, 2021 10:04
highchart.json
{
"chart": {
"style": {
"color": "#b9bbbb"
}
},
"series": [
{
"color": "#108ec5",
"name": "New York",
@MikeHarris105
MikeHarris105 / highchart-with-highchart-key-and-object-value.js
Last active January 8, 2021 10:00
highchart-with-highchart-key-and-object-value
{
highchart: {
chart: {
style: {
color: "#b9bbbb"
},
},
series: [{
color: "#108ec5",
name: "New York",
@MikeHarris105
MikeHarris105 / highchart-with-highchart-key-and-string-value.js
Last active January 8, 2021 09:57
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
MikeHarris105 / highchart.js
Last active January 8, 2021 09:54
Highchart: A string of JavaScript which we eval as the payload
{
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]
{
"item": [
{
"text": "Earth has not anything to show more fair:Dull would he be of soul who could pass by A sight so touching in its majesty:This City now doth, like a garment, wear The beauty of the morning: silent, bare,Ships, towers, domes, theatres, and temples lie Open unto the fields, and to the sky ….",
"type": 0
},
{
"text": "I wandered lonely as a cloud That floats on high o’er vales and hills, When all at once I saw a crowd, A host, of golden daffodils; Beside the lake, beneath the trees, Fluttering and dancing in the breeze …",
"type": 1
}
{
"orientation": "horizontal",
"item": {
"label": "Revenue 2014 YTD",
"sublabel": "(U.S. $ in thousands)",
"axis": {
"point": ["0", "200", "400", "600", "800", "1000"]
},
"range": {
"red": {