Last active
December 9, 2016 13:08
-
-
Save crazyrohila/83faaaca2a82be03e3708fdddef8908b to your computer and use it in GitHub Desktop.
HighchartExport - Calculated column data (Extra data)
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
// 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