How to do this similar functionality in angular-highcharts.
Is there any way by which i can show the invisible or hidden series in html table in highcharts, suppose i have three series but i want to show only one series in the chart , but i want others to be visible in exporting feature i.e csv, html table etc.
Js-fiddle link: https://jsfiddle.net/j3xknv9f/5/
Code
Highcharts.chart('container', {
exporting: {
showTable:true,
chartOptions: {
chart: {
events: {
load() {
const chart = this,
series = chart.series;
series.forEach(series => series.setVisible(true))
}
}
},
}
},
title: {
text: 'U.S Solar Employment Growth by Job Category, 2010-2020'
},
subtitle: {
text: 'Source: <a href="https://irecusa.org/programs/solar-jobs-census/" target="_blank">IREC</a>'
},
yAxis: {
title: {
text: 'Number of Employees'
}
},
xAxis: {
accessibility: {
rangeDescription: 'Range: 2010 to 2020'
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
plotOptions: {
series: {
label: {
connectorAllowed: false
},
pointStart: 2010
}
},
series: [{
name: 'Installation & Developers',
data: [43934, 48656, 65165, 81827, 112143, 142383,
171533, 165174, 155157, 161454, 154610
]
}, {
name: 'Manufacturing',
data: [24916, 37941, 29742, 29851, 32490, 30282,
38121, 36885, 33726, 34243, 31050
],
visible: false
}, {
name: 'Sales & Distribution',
data: [11744, 30000, 16005, 19771, 20185, 24377,
32147, 30912, 29243, 29213, 25663
],
legend:false,
visible: false
}],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom'
}
}
}]
}
});
So i have solved this issue for normal , vanilla javascript. But i want to know how can i solve this same for angular-highcharts.
js-link:https://jsfiddle.net/j3xknv9f/11/
code: