score:5
Accepted answer
You are updating color in a wrong way, use point.update()
instead: http://jsfiddle.net/CaPG9/8/
$('#container').highcharts({
chart: {
type: 'bar'
},
tooltip: {
valueSuffix: ' millions'
},
series: [{
name: 'Year 1800',
data: [107, 31, 635, 203, 2]
}]
},function(chart){
var max = 200;
$.each(chart.series[0].data,function(i,data){
if(data.y > max)
data.update({
color:'red'
});
});
});
score:13
You are looking for this option:
plotOptions: {
series: {
states: {
hover: {
enabled: false
}
}
}
},
Fiddle here.
EDITS
Instead of modifying the SVG directly to set your colors, do it within the api:
var max = 200;
var seriesData = $.map([107, 31, 635, 203, 2],function(datum, i){
return {
color: datum > max ? 'red' : '#2f7ed8',
y: datum
};
});
$('#container').highcharts({
chart: {
type: 'bar'
},
tooltip: {
valueSuffix: ' millions'
},
series: [{
name: 'Year 1800',
data: seriesData
}]
});
New fiddle.
Source: stackoverflow.com
Related Query
- How to change the text color in Highcharts
- How to disable the on-hover color change in Highcharts?
- Highcharts - how to disable color change on mouseover/hover
- In highcharts how do I change the color of the line above the categories?
- How to change the color of highcharts series graph to black & white during downloading it as an image?
- How to change the bar color in Highcharts
- How to change the line color of a bubble in highcharts dynamically
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- how do you change the color of cells in highcharts heatmap?
- How to change the color of a custom renderer text to the title color in Highcharts
- How to change the marker style on hover in HighCharts
- How can i change the color of a tile which was clicked of a treemap in highcharts using react
- How to change the color of the each slice in piechart based on the backend response using highcharts
- how to disable the color change on mousehover in sankeycharts Highchart . { hover: {color: '#a4edba',opacity: 1,filter: {type: 'none',}}} didnt work
- HighCharts navigator: how to disable the expand width icon on hover
- How do you change the colour of each category within a highcharts column chart?
- How can I change the colors of my highcharts piechart?
- Highcharts Change column color on hover
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- How can i keep the color the same in highcharts
- How to completely disable the mouse/finger interaction for highcharts
- How to change Highcharts xAxis label color individually?
- How do I set the background color of a Highcharts HTML label?
- How to change area graph color above certain value in Highcharts
- Highcharts, how to change hover bg color for series with multiple columns (categories)
- Highcharts change the line color if its out of the area range
- How to set series-label to false by default and change the color of series label text in highchart
- How do I change a specific bar color in Highcharts Bar Chart?
- how to display 2 same highcharts without duplicate the code
- How to change the background color of measure tool in stock chart in highstock?
More Query from same tag
- Highchart export is calling events
- Preventing a custom piece of text from appearing ON ALL Highcharts present on a page ← piece of text inserted using {events:{load:function(){var
- highcharts multi curved for different x value
- Enable rangeSelector buttons for asyncLoading without navigator enabled
- jQuery pushing additional calculated data points to HighChart series
- highchart/highstock navigator doesn't work with keyboard
- javascript - Highcharts - Type Bar - How to set different starting for each bar
- Increase width of Xaxis title in bar chart in highcharts
- Multiple Axes on a Highcharts Heatmap
- Setting max column amount in highchart column chart type
- Highcharts yAxis Categories with string values: error 14
- Change height of Highcharts with JavaScript. By default only re-sizes on window re-size
- How to plot map and data with respect to zipcodes/neighbourhoods for amsterdam
- Converting JS to CoffeScript, missing operand?
- Highcharts plot markers move behind spline graph animation
- Live plot with multiple y axis in highcharts
- After print chart another chart is not visible in page
- Highcharts {Gauge} - Remove bottom border and change dial position
- How to show a custom message box at last point, Highcharts
- Custom Cursor in Highmaps when no data is available for hovered country
- Highchart (stockchart) Yaxis on opposite side miss align when left axis is not visible
- Force Highcharts to use standalone framework instead of jquery?
- Updating data with Highcharts alters initial set
- How to hide stackLabel in highcharts when it is bigger than the column
- How to change "defaultOptions" lang in highCharts dynamically
- How dragDrop works in Highmaps with mappoint (Highcharts)
- Highchart multiple column range in same series on bar chart
- Highcharts legend item hover event?
- highcharts vs highstocks - compatible?
- How do I use a heatmap with vue highcharts?