Closed leongaban closed 7 years ago
Figured it out:
### Finally figured it out!
Had to remove the line where I set the series to a `var`
const updatePriceLine = (chart) => {
// const priceLine = chart.get('series-priceline');
const prices = chart.get('series-priceline').data.map((point) => {
return {
x: point.x,
y: point.y
};
});
chart.get('series-priceline').update({ keys: ['y'] });
chart.get('series-priceline').setData(prices)
return chart;
};
So just called the `.update` and `.setData` directly on the `chart.get('series-priceline')`
http://stackoverflow.com/questions/41902662/how-to-reformat-a-highchart-series-keys-array-to-display-only-1-column-in-the-cs
It's not a series I'm trying to remove/hide, but specific keys, in this case
x
andend
priceLine series options:
priceLine series data: