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 Query
- 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
More Query from same tag
- Bug in Highcharts after exiting the full screen mode
- How to convert highchart to binary image
- highchart refresh wont work on my website
- Multiple pie charts in 1 graph with split tooltip Highcharts.js
- Show xrange x and x2 values in chart
- Display highchart dashstyle (svg) in select element
- highcharts remove redundant data points to improve speed
- Highcharts rounding yaxis and xaxis digits
- Add Categories and Series dynamically from JSON in HighCharts
- How to hide a specific x-axis label programmatically?
- How to show 0 value infomation in treemap highcharts
- Highcharts javascript control series
- How can I scrape Json data from Highcharts (stats.twitchapps.com)
- Highcharts - Exporting gantt charts not showing previous interaction by user
- HighcharteR multiple tooltips open with hideDelay
- Highcharts hide categories that don't fit
- Adding new data to highchart tooltip
- Show label of stacked columns only on hover (and also the previous and next column)
- Highchart series style on button click
- Not able to show data labels of column in highchart , incorrect format is showing
- How to color point in HighCharts
- Highcharts, Can you change the chart type for drilldowns?
- Highcharts Error #15 with wrong data series displayed
- Highcharts Boxplot - box with lower, upper quartile and median is not displaying when min and max are null of a category
- Label truncation while using Grouped category plugin in highcharts
- Highcharts showing wrong time based on timezone
- HighChart: Add xaxis dynamically doesn't consider what type I give it
- Getting the complete XML source out of an XML DOM object
- Create a heatmap using Yii2 highcharts widget
- Highcharts remove gap between start of xAxis and first value