score:8
DEMO of different color for different series of the column chart from our customized array of colors thus overriding the default colors of the highcharts.
code:
var colors = ['#FF530D', '#E82C0C', '#FF0000', '#E80C7A', '#E80C7A'];
$( '#container' ).highcharts({
plotOptions: {
pie: { //working here
colors: colors
}
},
colors:colors,
series: [{
type: 'column',
data: [25, 34, 15, 17, 19],
},{
type: 'column',
data: [25, 34, 15, 17, 19],
},{
type: 'column',
data: [25, 34, 15, 17, 19],
}, {
type: 'pie',
data: [25, 34, 15, 17, 19],
center: ['75%', '30%']
}]
});
score:0
In fact, You should use the latest highcharts.js (Highcharts JS v6.1.4 (2018-09-25)). I have fixed this using version 6x.
score:3
The trick is to set the series color and not global options colors or point colors.
Global options colors is an applied set for all charts on the page. It will be ok if you apply it to another chart.
Also, colorByPoint will need to be false. This is default false, so you can exclude.
Also make sure to set color and not color(s) if you wish to include a legend. The legend will not know what color to use if you set multiple colors and will just default.
$( '#container' ).highcharts({
plotOptions: {
column: {
//colorByPoint: false,
//stacking: 'percent',
},
pie: {
colors: ['#FF530D', '#E82C0C', '#FF0000', '#E80C7A', '#E80C7A']
}
},
series: [{
type: 'column',
color: '#FF530D',
data: [25, 34, 15, 17, 19]
}, {
type: 'pie',
data: [25, 34, 15, 17, 19],
center: ['75%', '30%']
}, {
type: 'column',
color: '#333333',
data: [15, 27, 10, 23, 21]
}]
});
Here is an update to your js fiddle. http://jsfiddle.net/c5nhd/4/
This also works if you wish to stack by percent.
Source: stackoverflow.com
Related Query
- Highcharts - How to set custom colors for the series
- How can I set the legend symbol color for a series when using colorByPoint?
- Highcharts Theming: How to set gradient colors for certain chart types only?
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- How to set up zoomType for Highcharts with the CodeIgniter lib
- Highcharts Highstock How do I change the label on top of tooltip for OHLC series data?
- HIGHCHARTS How to to make separate colors for shaded region and the line in Area Graph
- HighCharts - how to customize the tooltip for dynamically added series
- highchart maps: mapbubble set custom x,y coordinates for the series for bubbles on same country
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- highcharts how to set y-axis index for series data(categories),not series(legend)
- Highcharts Stacked column drill down not working?> How to set drill down series for my scenario?
- How to set columnrange width to expand the length of the x-axis in multiple data series in Highcharts
- set different colors for each column in highcharts
- How can I change the colors of my highcharts piechart?
- how to set the interval of points on Y - Axis highcharts
- Customizing the colors of individual series in HighCharts
- How can i hide all the Series in highcharts at a time
- How to set a static minimum value for axes in Highcharts
- Highcharts Custom tooltips for multiple series
- Highcharts Bar Chart - How to set the minimum bar width/length
- How do I set highcharts line graph point colors to an array of colors?
- How can I delete all of the points from a highcharts series
- How to set the z-index of points on a HighCharts scatter plot?
- Sort the series data for every X-Axis in Highcharts
- How do I style the series labels on a Highcharts pie chart?
- How to remove the halo/glow around a marker upon hovering a series in Highcharts
- Highcharts (Highstock) how to manually set the navigator selected range
- How to completely disable the mouse/finger interaction for highcharts
- How to set the x value for High Charts error bar
More Query from same tag
- Highcharts datalabels with gradient color
- Highcharts inverted column chart - descending tickPositions
- Highstock - Remove bottom date tooltip from line chart
- How to a show a block between two points in highchart
- Highcharts + Highmaps module not working
- Highcharts - change background color along specific date range
- Show loading highstock
- Is it possible to render a linear gradient in highcharts that has multiple stops?
- rCharts Unable to run examples (HighChart)
- rendering Highcharts datatimes on the x axis at regular intervals
- Highcharts highlight single point on line
- highcharts stacked area with irregular x-intervals
- Highcharts : How to using grouped_categories for csvURL?
- How to show time values in stacked column using High stock
- Highstock points don't align with tick correctly
- How can I get inner slice when clicking on an outer slice in a HighChart donut chart?
- Highcharts: Auto-scale rendered shape along with chart?
- Passing JSON in variable to HighCharts
- Image inside Highcharts ring
- Very wide columns in stacking column graph
- Highcharts capture selection
- Toggle alert visibility using highcharts
- Hide a specific series legend in a column chart with multiple series
- Is it possible use size (z) argument with RHighcharter and a categorical Y-axis?
- Highchart error make the whole page breakdown
- PhantomJS - sending a POST from the cmd w/ Curl isn't working
- How to add image/icon to a chart in Highcharts
- error with adjusting height of pie chart using highcharts
- How can I make Highcharts label a datetime X-axis with relative dates?
- Percentage for left style of a custom label in highcharts