Skip to content

Instantly share code, notes, and snippets.

@ababol
Last active August 29, 2015 14:04
Show Gist options
  • Save ababol/a149b805925a84dae14a to your computer and use it in GitHub Desktop.
Save ababol/a149b805925a84dae14a to your computer and use it in GitHub Desktop.
Geckoboard - Default Highcharts Colors
{
chart: {
renderTo: 'container',
type: 'areaspline',
backgroundColor: 'transparent'
},
title: {
text: ""
},
xAxis: [{
type: "datetime"
}, {
type: "datetime",
opposite: true,
lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
labels: {
enabled: false
},
minorTickLength: 0,
tickLength: 0
}],
yAxis: {
title: {
text: "",
},
endOnTick: true,
maxPadding: 0
},
tooltip: {
formatter: function () {
return this.y;
}
},
legend: {
enabled: false
},
credits: {
enabled: false
},
plotOptions: {
areaspline: {
dataLabels: {
enabled: false
},
animation: false,
groupPadding: 0,
marker: {
enabled: false
}
}
},
series: [{
name: 'Axis 1',
xAxis: 1,
color: '#666666',
data: [{
x: 1397338212000,
y: 25
}, {
x: 1397359812000,
y: 28
}, {
x: 1397734213000,
y: 30
}]
}, {
name: 'Axis 0',
xAxis: 0,
color: '#CDCDCD',
data: [{
x: 1397338212000,
y: 15
}, {
x: 1397359812000,
y: 20
}, {
x: 1397367012000,
y: 24
}]
}]
}
{
chart: {
renderTo: 'container',
type: 'column',
backgroundColor: 'transparent'
},
title: {
text: ""
},
xAxis: {
categories: ["New", "Open", "Pending", "Resolved", "Closed"],
title: {
text: ""
}
},
yAxis: {
title: {
text: ""
},
endOnTick: true,
maxPadding: 0
},
tooltip: {
formatter: function () {
return this.y;
}
},
legend: {
enabled: false
},
credits: {
enabled: false
},
plotOptions: {
column: {
dataLabels: {
enabled: false
},
animation: true,
groupPadding: 0,
colorByPoint: true
}
},
colors: ['#CDCDCD'],
series: [{data: [5, 3, 3, 1, 2]}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment