I have a working Highcharts bar chart with 2 series that exports to CSV correctly. I added a hidden ROUND series that should be included in the exported CSV data. Setting the includeInDataExport property to true is supposed make this happen. However, this is not working for me and I've not found an example showing how to correctly use this property.
Here are the current chart options.
{
chart: {
type: "bar"
marginTop: 30
spacingRight: 50
style: {
fontWeight: "400",
fontFamily: "Montserrat"
}
},
title: {
text: ""
}
xAxis: {
categories: Array(7),
lineWidth: 1
}
yAxis: {
min: 0,
lineWidth: 1
}
legend: {
reversed: true,
itemStyle: {
}
}
tooltip: {
headerFormat: "COMPANY: {point.x}<br/>",
pointFormat: "{series.name}: <b>${point.y}</b>"
}
plotOptions: {
bar: {
dataLabels: {
enabled: true
},
includeInDataExport: true
},
series: {
colorByPoint: true,
includeInDataExport: true
}
}
series: [
{
name: "ROUND",
data: [
0,
0,
0,
0,
0,
0,
0
],
visible: false,
showInLegend: false
},
{
name: "P2",
data: [
230.3,
228.25,
217.72,
243.34,
235.56,
205.73,
252.83
]
},
{
name: "P1",
data: [
115.15,
115.58,
104.2,
115.58,
113.34,
101.27,
121.3
]
}
]
}}