Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Last active December 9, 2016 13:08
Show Gist options
  • Save crazyrohila/83faaaca2a82be03e3708fdddef8908b to your computer and use it in GitHub Desktop.
Save crazyrohila/83faaaca2a82be03e3708fdddef8908b to your computer and use it in GitHub Desktop.
HighchartExport - Calculated column data (Extra data)
// If we want to export some more info or calculated column in export csv data
// we can create a fake series with minimal required props and then push to chart.series
// and highchart will export that.
var s = {
name: "Test2",
options: {
stickyTracking: true
},
points: [{
name: 'Jan',
x: 'Jan',
y: 10
}, {
name: 'Feb',
x: 'Jan',
y: 10
}, {
name: 'Mar',
x: 'Jan',
y: 10
}]
};
chart.series.push(s);
// That's it.
// Full demo example
// http://jsfiddle.net/crazyrohila/kyfkmL34/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment