Accepted answer
  • Make a temp series object.
  • Then loop through you data and assign data.color based on your value and push it to series data object.
  • After the loop finishes push the temp series object to the hightchart options series.


Example is a simple demo. You will need to adapt it to your need.


You can do this by specifying the colour in your data. e.g. from the highcharts examples:

data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, {
            y: 216.4,
            color: '#BF0B23'
        }, 194.1, 95.6, 54.4]

Related Query

More Query from same tag