score:2
According to this post you are only missing to call redraw on series. And also it addresses how to change the color of series completely including markers and legend too in addition to line object. Changing series color in highcharts dynamically
var series = chart.series[0];
series.setData(data);
if(jQuery.inArray(data[$i][2], http_code_arr) > -1)
{
series.color = "#FF0000";
series.graph.attr({ stroke: '#FF0000' });
}
else
{
series.color = "#3BBEE3";
series.graph.attr({ stroke: '#3BBEE3' });
}
chart.legend.colorizeItem(series, series.visible);
$.each(series.data, function(i, point) {
point.graphic.attr({
fill: '#FF00FF'
});
});
series.redraw();
Source: stackoverflow.com
Related Articles
- Highcharts : Change spline chart color dynamically
- Pie chart Slice color Change Dynamically in Highcharts
- Highcharts dynamically change bar color based on value
- HighCharts Dynamically Change Chart Type
- Change color of area chart programmatically in highcharts
- Highcharts --- Change sliced color on drilldown pie chart
- HighCharts - Dynamically Change Axis Title Color
- Change line color in area-spline chart in Highcharts
- How to change color of bar in column chart with different level of percentage in highcharts
- change datalabels color in a HighCharts chart when hovering without updating the series
- highcharts change series color when data is dynamically inserted
- How to change the line color of a bubble in highcharts dynamically
- Highcharts - Dynamically change chart type with on radio buttons click
- Highcharts - Pie Chart change slice colors dynamically
- HighCharts change zoom selectionMarkerFill color dynamically
- Highcharts - change color while hovering over a slice in pie chart
- change particular line chart series colour dynamically in highcharts
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- Change color of selected point in HighCharts dynamically
- How to dynamically change line color based on value being lower than previous in highcharts
- Highcharts - Add Point to chart with different color based on some condition dynamically
- HighCharts - Spline Chart Legend Color
- Highcharts - change pie slice color on existing chart
- programatically change the color of a highcharts spline series?
- Highcharts (9.0.1): drilldown problem after change chart type dynamically
- Highcharts PIE chart series color doesn't change
- Change graph color above and below plot-line in Column chart in Highcharts
- Can not access Highcharts chart from container, so I can't change data in a chart dynamically
- Programmatically change a chart title in highcharts
- Highcharts : Change opacity of a column chart
- How to adjust transparency of inactive series in highcharter with R
- Display HH:MM on y axis highcharts
- Highchart - The expected type comes from property 'dashStyle' which is declared here on type 'XAxisPlotLinesOptions'
- Adding series dynamically in highcharts
- High chart export not working in android webview
- Django HighChart with Api
- Legend title position in
- Highcharts - Hide export menu in print page
- Is there any way to add border in highcharts legend text individually?
- Tooltip issue on columnrange highchart
- How to see truncated text with hover in highcharts?
- How to update the series data of piechart(using highchart) through loop in angular
- Highcharts pie charts can have url links
- highcharts scatter change point color
- negative values in highcharts stacked column chart
- Highcharts free-form drawing content not getting exported
- Highcharts / JavaScript month is incompatible with MySQL
- Highcharts / Highmaps with Angular - Cannot run demo
- How i can increase size of legends in line Highchart
- how to draw hour and minute value (hh:mm) pie chart using highcharts,javascript