score:1
As per highcharts-gantt documentation:
Update the series with a new set of options. For a clean and precise handling of new options, all methods and elements from the series are removed, and it is initialized from scratch.
On event, you should then go through given serie points and change its options (in your case 'color'). The changes will be applied in the timeline below - example code changes the color after 1,5sec.
//Updating the color
setTimeout(function() {
for (var i = 0; i < chart.series[0].points.length; i++) {
chart.series[0].points[i].update({
color: "grey"
});
}
}, 1500);
In your code it would be:
events: {
load: function() {
Highcharts.each(this.series[0].points, function(p) {
p.update({color: "grey"});
});
}
}
To avoid shrink of timeline - launch setExtremes() after chart update.
Fires when the minimum and maximum is set for the axis, either by calling the .setExtremes() method or by selecting an area in the chart.
//Fully selected timeline
this.xAxis[0].setExtremes();
score:0
You can also set options for series of navigator, like below:
navigator: {
series: {
...,
colorByPoint: false,
color: 'grey'
},
...
}
Live demo: https://jsfiddle.net/BlackLabel/c4j9dvqx/
API Reference: https://api.highcharts.com/gantt/navigator.series.color
Source: stackoverflow.com
Related Query
- Highchart Gantt chart Navigator color
- how to change color of line chart in highchart based on a categorical column in r?
- Setting color options on Highchart bar chart
- In Highchart gantt Chart inside highcharts-point how can i create custom shapes
- Highchart gantt chart no overlapping
- Set Color for Pie Chart using HighChart + JSON data
- Column based Highchart drilldown series assign color code to each column
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- Combining gantt chart and line chart using highchart
- how to add color inside a 3d chart in highchart js
- Specify color for Pie Chart Highchart
- How to change the label color of Y-Axis on click in angular Gantt chart High Chart
- How to select or highlight the x axis border on click of Y axis label in gantt chart highchart
- How to render Gantt Highchart from data source
- highchart column chart color for same month
- spline chart highchart to fill the color in series
- How to fill the blank space between the bars with specific color in gantt chart of highcharts?
- How to make highchart bubble chart color active of clicked bubble
- Highchart columnrange, color code lines based on data
- How to create a column range chart in Highcharts using range and navigator functions?
- How to use the tooltip formatter and still display chart color (like it does by default)?
- Remove Export and print button plugin on highchart chart
- Highchart - change color of one x-axis label only
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- How to create a new Highstock chart with new Highchart and not jquery?
- Highchart Area Range chart with gradient that follows the line
- Change color of bars depending on value in Highchart bar-chart with MVC3
- Displaying multiple series in the navigator of an HighStock chart
- Background color for multiple Highchart panes, in Vue app
- Highchart - Redraw Chart after Window is resized
More Query from same tag
- Interpolate or use a variable inside a string in javascript
- How to Change Legend Text of a Chart Object in Crystal Reports 10
- How to add 3d Highcharts - Countour plugin in angular 8. Tried Multiple ways but still getting error
- Donut Slices Not Visible On Load
- How to pass time in "highcharts"?
- Highcharts/Highstock supported in Google Sites?
- Different colors for positive/negative parts of column
- Highcharts: legend on bottom with custom marginBottom already
- .net Highcharts can't show the bar chart correctly in mvc
- javascript highchart photo slide
- change legend color high charts based on data
- Show days in future without series
- Highchart tooltips formatter issue
- how to give click event in directive using angular js?
- Lazy Highcharts drilldown
- High charts using candlestick,vloum and MACD
- Highstock don't draw
- Highstock + Bootstrap datepicker
- Highcharts Node.js Export Server - gettting output in SVG string
- Highchart - Show histogram results using waterfall style rendering
- How to convert datetime string to UTC to plot points on Highcharts
- Combine PieChart with Map
- Gartner magic quadrant in highcharter
- highcharts.js add mouseOver function or hover states (implement breaks chart?)
- Why does GeoJSON map looks stretched in Highmaps for WSG84?
- Serializing a function as a parameter in json using C#
- Highcharts check if a series is empty
- Highcharts - TickInterval with datetime values
- Show Highcharts tooltip outside SVG container
- How to add image/icon below y-axis in column highcharts