score:1
You can always simply set colors for series/chart and then set colorByPoint
to true, see: http://jsfiddle.net/QgBpk/
The good thing is that you don't need to preprocess your data to add color for a specific point.
score:1
The details for how to do this are clear in the API documentation: http://api.highcharts.com/highcharts#series.data.color, you can set the color on an individual data point, see here:
So, from your example this does what you want:
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: "bar"
},
xAxis: {
categories: [ "July", "August", "September", "October"]
},
series: [{
data: [2341, 1245, 989, { color: 'red', y: 1829 } ],
}]
});
If you want to change the colour later then the linked answer in the comments shows how -- there is a loop there changing all the points, you can use it to change just one.
Source: stackoverflow.com
Related Query
- Changing bar colors on data that is within the same series data
- How to draw two series in the same chart that has different data time in xAxis
- Several Series with the same xAxis data in HighChart
- Highcharts: make y-axis extremes the same for two data series with different units
- Highcharts show the same yAxis start and end value with multiple data series
- Highcharts: aligning data labels on the same line in bar charts
- What's the code in Highcharts such that the bars (columns) in the same group use the same color?
- stacked bar graph yAxis plotbands width is changing when toggle/add/remove the series dynamically
- How to set different bar width in the same series Highchart
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- Changing data dynamically for a series in Highcharts
- Reduce gap between series data in Bar Highchart
- Customizing the colors of individual series in HighCharts
- Changing Highcharts data series type dynamically
- Highcharts - How to set custom colors for the series
- Can color of data label be different inside and outside of the bar in Highchart
- Change series data dynamically in react-highcharts without re-render of the chart
- Highchart data series filled with different colors
- highcharts link series such that turn one off turns off the other
- How to position datalabel at the base of bar series
- Use single color for all series in the same chart
- Sort the series data for every X-Axis in Highcharts
- Highcharts: update series on multiple charts with same data
- Changing data in HighCharts series causes y-axis to blow up
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Highcharts add tooltip that has a small arrow pointing toward the series
- How can I hide ALL series with the same ID with a button on highcharts? (line graph)
- Highcharts- how to set yAxis to the closest or exact value in the series data
- How do you set the stack order of the series in a stacked bar chart?
- How to set minimum height of data element of series in stacked bar chart?
More Query from same tag
- Highcharts Annotation SVG doesn't move with other shapes
- Is there a specific way to add data points from fetch() after a chart has been built?
- Highchart tooltip variable width
- Divergent chart possible with Highcharts?
- Type '{ text: string; }' is not assignable to type 'TitleObject'. in highcharts
- Highcharts: Stop one series interacting with the mouse?
- trying to use highchart xrange to display large number of categories
- how to adjust the tickposition or 'x' axis on areapline highchart
- Custom Drill No Longer Functioning
- Highcharts in mvc 4, many categories
- JSon with HighCharts and ASP.NET
- How to change the color of single point in spiderweb chart
- Highcharts Drilldown is not show if i have more than 4000 data points
- Highcharts: How to pass the color parameter with data and dates to the bar chart?
- X-axis doesn't show correct time
- Share tooltip between all series types
- Highchart is not working on Google chrome
- Having trouble mapping highcharter aesthetics to reactive object elements
- Highcharts word cloud - Make a link to each word
- Highchart tooltip show nearest point
- Pie Chart tooltip thousand seperator and rtl labels doesn't work in highchart
- Rcharts Shiny : not reload all variables after just one variable update
- Big Tooltip over points - Highcharts
- Show form view of existing id after click on menu button in odoo 8?
- Long length string is not displaying correctly in the chart
- How to get chart data in tabular form same as 'view data table' on click a button
- How to plot stacked bar chart in highcharts with dynamic data?
- Highcharts stock-chart y-axis values go over 100%
- Highstock change xAxis minRange after chart is loaded
- Highchart, how to vertically align in the middle a line?