Description
When performing a series.update operation on a ColoredareaSeries, the chart fails to render, throwing:
Uncaught TypeError: this.getSegment is not a function at highcharts-multicolor-series:18:136 at Array.forEach (<anonymous>) at D.drawGraph (highcharts-multicolor-series:18:112) at D.drawGraph (highcharts-multicolor-series:19:171) at D.render (highcharts.js:2:173292) at D.redraw (highcharts.js:2:173643)
Steps to Reproduce
- Create a chart with a
coloredarea series.
- Perform a
series.update operation (e.g., chart.series[0].update({ data: [...] }, true)).
- Observe the console for the error and note that the chart fails to render.
Demo: https://jsfiddle.net/BlackLabel/3g7hvwf6/
Expected Behavior
The series.update operation should redraw the ColoredareaSeries without errors, using getSegment to create SVG elements for graph segments.
Actual Behavior
The error TypeError: this.getSegment is not a function is thrown, and the chart does not render.
Environment
Description
When performing a
series.updateoperation on aColoredareaSeries, the chart fails to render, throwing:Uncaught TypeError: this.getSegment is not a function at highcharts-multicolor-series:18:136 at Array.forEach (<anonymous>) at D.drawGraph (highcharts-multicolor-series:18:112) at D.drawGraph (highcharts-multicolor-series:19:171) at D.render (highcharts.js:2:173292) at D.redraw (highcharts.js:2:173643)Steps to Reproduce
coloredareaseries.series.updateoperation (e.g.,chart.series[0].update({ data: [...] }, true)).Demo: https://jsfiddle.net/BlackLabel/3g7hvwf6/
Expected Behavior
The
series.updateoperation should redraw theColoredareaSerieswithout errors, usinggetSegmentto create SVG elements for graph segments.Actual Behavior
The error
TypeError: this.getSegment is not a functionis thrown, and the chart does not render.Environment