score:114
You can also set the color individually for each point/bar if you change the data array to be configuration objects instead of numbers.
data: [
{y: 34.4, color: 'red'}, // this point is red
21.8, // default blue
{y: 20.1, color: '#aaff99'}, // this will be greenish
20] // default blue
score:-1
{plotOptions: {bar: {colorByPoint: true}}}
score:0
This worked for me. Its tedious to set all the colour options for a series, especially if it's dynamic
plotOptions: {
column: {
colorByPoint: true
}
}
score:1
Just add this...or you can change the colors as per your demand.
Highcharts.setOptions({
colors: ['#811010', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
plotOptions: {
column: {
colorByPoint: true
}
}
});
score:1
add properties:
colors: ['Red', 'Bule', 'Yellow']
score:2
just put chart
$('#container').highcharts({
colors: ['#31BFA2'], // change color here
chart: {
type: 'column'
}, .... Continue chart
score:4
Like mentioned by antonversal, reading the colors and using the colors option when creating the chart object works.
var chart3 = new Highcharts.Chart({colors: ['#458006', '#B0D18C']});
score:8
You can add colors array in high chart graph for changing the color of graph. You can re-arrange these colors and you can also specify your own colors.
$('#container').highcharts({
colors: ['#2f7ed8','#910000','#8bbc21','#1aadce'],
chart: {
type: 'column'
},
title: {
text: 'Stacked column chart'
},
score:15
Yes, here is an example in jsfiddle: http://jsfiddle.net/bfQeJ/
Highcharts.setOptions({
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']
});
The example is a pie chart but you can just fill the series with all the colors to your heart's content =)
score:29
Add which colors you want to colors
and then set colorByPoint
to true
.
colors: [
'#4572A7',
'#AA4643',
'#89A54E',
'#80699B',
'#3D96AE',
'#DB843D',
'#92A8CD',
'#A47D7C',
'#B5CA92'
],
plotOptions: {
column: {
colorByPoint: true
}
}
Reference:
score:67
Also you can set option:
{plotOptions: {column: {colorByPoint: true}}}
for more information read docs
Source: stackoverflow.com
Related Query
- How do you change the colour of each category within a highcharts column chart?
- How to change the background series colour of Highcharts Radar chart
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- How to reference yData from another series in each category of a highcharts column chart
- How do you increase the performance of highcharts chart creation and rendering
- Highcharts stacked column how to use different label on each category
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- Get the end points of each bar in a highcharts column chart
- How to change color of bar in column chart with different level of percentage in highcharts
- How can you change the "label" (valueSuffix) on a highcharts gauge after the gauge has been created?
- How do you change the height value when more items are added to highcharts dynamically?
- how to change the color of column in chart ?
- How can I get HighCharts column chart to scale the yAxis to not have so much whitespace?
- how do you change the color of cells in highcharts heatmap?
- How can I change highcharts events after the chart has been initialized
- Highcharts Chart Bar - How can I display in the chart, only one column from my HTML table?
- Line and column combo chart with multiple columns for each category, how to position line marker for each category on a specific column?
- Highcharts: how to maintain the same order of category labels when bar chart changes to column chart
- How to change the color of the each slice in piechart based on the backend response using highcharts
- How to add a line at the bottom of a column chart in highcharts
- How can I put text within horizontal bar chart data points using Highcharts as well as adding text underneath each data point? Example below:
- How do you remove the partialFill from Highcharts xrange chart
- How to change time frame of the candle stick chart in Highcharts (Highstock)?
- How to display legend in Highcharts Waterfall Chart and make the sum column of waterfall appear in multiple colors?
- How to change the colour of the legend column block in Highcharts?
- Highcharts : How to align column chart and bubble chart vertically in the same series
- How to create a column range chart in Highcharts using range and navigator functions?
- How can I change the colors of my highcharts piechart?
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Highcharts : Change opacity of a column chart
More Query from same tag
- Change background color on HighCharts
- How automatic xAxis labels rotation in highchart
- printing pie's dataLabels numbers with commas
- How To Load CSV File Data On HighChart?
- Highcharts x axis label text wrapping lost on setting label step
- Highcharts using Django-Chartit. Chart lines not displayed without window resize, or Inspect Element
- Missing bar in barchart when using highstock.js instead of highcharts.js
- How to add highcharts plugins into highcharts-vue(highcharts vue wrapper)
- how to enable scroll bar with reactjs?
- Wrong labels on X axis on Highcharts
- How to put static pointDots and make vertical line in Chart.js
- Highcharts Angular navigator xAxis is not shrinking
- How do you create a survey that will immediately display the results as a pie chart on a website?
- Highstock grouping show hidden serie values in tooltip
- Highcharts - fire legendItemClick event
- Pointplacement for a column when two columns are shown in same chart
- Adding intraday option to highcharts
- Highchart navigator data format
- Is it possible to show text on top of an Arearange chart
- Highcharts (highstocks) tooltip does not work on latest firefox 64.0 with useHTML=true
- get bot xAxis values when doing click event on highcharts
- HighCharts: Labels visible over tooltip frame
- Set Specific Range on X-Axis in HighCharts
- ionic 2 Uncaught (in promise): Error: Highcharts error #17: www.highcharts.com/errors/17
- Labeling for Highchart Funnel Visualization
- Multiple y-axes causing range to have too much padding
- Redraw/Resize highcharts when printing website
- Asyncronously add history to existing HighStock chart
- Highcharts multiple series from JSON with different style depending on serie name
- Highstock - Timeaxis ticks not continuos