score:23
Accepted answer
You can use color zones (API) to have different colors based on the value of a column.
An example with values below/above the value 10 having different colors (JSFiddle):
plotOptions: {
column: {
zones: [{
value: 10, // Values up to 10 (not including) ...
color: 'blue' // ... have the color blue.
},{
color: 'red' // Values from 10 (including) and up have the color red
}]
}
}
score:1
plotOptions: {
column: {
zones: [
{
value: -1,
color: 'red',
},
{
color: 'green'//default color
},
],
},
}
score:2
In the parser you can replace that:
$.each(response, function(i, item) {
categorySeries .push(response[i].dateVal);
dataSeries.push(response[i].count);
});
with
$.each(response, function(i, item) {
categorySeries.push(response[i].dateVal);
if(response[i].count >= 10) {
dataSeries.push({
y: response[i].count,
color: 'red'
});
}
else {
dataSeries.push(response[i].count);
}
});
or use zones.
Source: stackoverflow.com
Related Query
- Highcharts dynamically change bar color based on value
- Highcharts Change Bar Color Based on Value
- Highcharts Change Bar Background Color Based on categories value
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- How to dynamically change line color based on value being lower than previous in highcharts
- change dataLabels on highcharts based on color of bar
- How to change gauge meter color based on value in highcharts
- Set color of Highcharts series bar based on value
- How can I change a Highcharts bar color based on a third field?
- Change the color of the bar chart based on the value
- Change Datalabel Color, Rotation and Align values based on Column value in highcharts
- highcharts: column chart color change based on value
- How to change area graph color above certain value in Highcharts
- HighCharts - Dynamically Change Axis Title Color
- How do I change a specific bar color in Highcharts Bar Chart?
- Change color code on colum, depending on data value (highchartJS)
- Change the color of bar on condition in highcharts
- How to change the bar color in Highcharts
- How to change color of bar in column chart with different level of percentage in highcharts
- Pie chart Slice color Change Dynamically in Highcharts
- highcharts change series color when data is dynamically inserted
- How to change the line color of a bubble in highcharts dynamically
- Update highcharts data dynamically on HTML form value change
- HighCharts change zoom selectionMarkerFill color dynamically
- how to get dynamic color change based on values in highcharts
- change bar colors dynamically - highcharts
- Change color of selected point in HighCharts dynamically
- rCharts : Highcharts column with color based on value
- Highcharts : Change spline chart color dynamically
- Highcharts How to change align of data labels based on value
More Query from same tag
- highcharts, json data: line and column
- Different color to same series line in highstock graph?
- Plotting data on x axis in Highstock
- how to turn off useUTC in angular2-highcharts?
- Highcharts: dynamically change the tooltip formatter?
- How to break highchart bars for extreme values
- Want to fetch mysql Field record in highchart tooltip
- Highcharts label grouping
- wrap function in javascript highcharts
- Adding Series during componentWillReceiveProps does not work
- Fixing the decimals on y axis to 5 places
- Different xAxis label, max and colors for drilldown in Highcharts
- How to render the missing data series and fix the dates on the x-axis in Highcharts?
- how to dynamically change chart type in highstock stock chart?
- Angular cannot using Highcharts X-range series
- Highstock graph showing data outside selected range
- Highcharts multiple stacked columns
- Unable to refer javascript array from another javascript file
- Can I load the columns (each series) one by one in a HighChart JS?
- How to send data from controller which is acceptable format to Highstock?
- How to get data for series and categories in highcharts-convert.js from mysql
- How can I increase size icon of the legend
- How to extend Tooltip Range in Highcharts
- Setting data with null values doesn't remove dots from the chart
- Highcharts area graph with fillColor changing color depending on the zone color?
- Highcharts long labels
- Determine trend line types available in HighStock charts
- Get x-axis values of selected graphs
- Change Font dateTimeLabel Highstock
- HighCharts - How to create dynamic chart that exports EVERYTHING