score:3
Accepted answer
You need to set colors for Highcharts in that way, for example, basing on default colors:
var colors = Highcharts.getOptions().colors.slice(0), // get default colors
dark = -0.5;
colors[1] = Highcharts.Color(colors[0]).brighten(dark).get(); // using Highcharts.Color(), get darker golor, using first color as base
colors[3] = Highcharts.Color(colors[2]).brighten(dark).get();
Now just set this colors:
$('#container').highcharts({
chart: {
type: 'column'
},
colors: colors,
score:0
You can use an hex color as:
var colors = [];
colors[0] = '#ff0000';
colors[1] = '#ff6600';
and then use:
Highcharts.chart('your_char_id', {
chart: {
type: 'column'
},
colors: colors,
score:1
colors = ['#195594', '#a4d3fd', '#dde0e0'];
and then
Highcharts.chart('your_char_id', {
chart: {
type: 'column'
},
colors: this.colors,
});
Source: stackoverflow.com
Related Query
- set color of grouped stacked column in highcharts
- Add a line on each bar for stacked and grouped column in HighCharts
- set the background color for column group graphs in highcharts
- Type Labels on Stacked and grouped column - Highcharts
- add total count inside stack labels grouped stacked column chart- Highcharts
- Highcharts Stacked column drill down not working?> How to set drill down series for my scenario?
- set different colors for each column in highcharts
- Highcharts column range change color for negative numbers
- Highcharts Change column color on hover
- Highcharts - Column With Negative Values - Column Color
- Hide 0 values in Stacked Column Chart in Highcharts
- Highcharts stacked column highlight
- Make Highcharts border color match background color on column chart
- Highcharts - change color of only clicked column
- Highcharts stacked column bar with line
- HighCharts stacked column range
- How do I set the background color of a Highcharts HTML label?
- Color each point individually in column chart highcharts
- Highcharts Grouped Column Chart with Multiple Groups?
- highcharts - precision for stacked column chart data labels
- Overlapping and rounded stack in stacked column graph in Highcharts
- Make stack label disabled for a column in stacked column graph in Highcharts
- Highcharts - column color different from color in legend
- How to color series legend in highcharts when colorbypoint is set to true
- Highcharts stacked column how to use different label on each category
- Highcharts stacked column stackLabels do not show when axis is reversed
- HighCharts Data Structure - Multiple Independent Series, Stacked Column Chart
- Highcharts Stacked Percentage Column Hyperlink
- Drilldown for grouped column chart in highcharts
- Highcharts overlapping and stacked column
More Query from same tag
- JavaScript error when using Highcharts
- Highcharts - Gauges Versioning
- HIGHCHARTS - Value of Columns Based on previous Column Value
- Use variable radius from HighCharts
- Highchart Time Data With Irregular Interval and Text
- How to make yAxis stackLabels under yAxis in Highcharts?
- How to export a python-highcharts chart for use in flask or django?
- Drilldown more than 1 subreport using Highcharts
- HTML table as data source for highstock charts using highcharts
- Drawing a dynamic Mixed Bar and Line chart with HIghchart.js with socket.io for live data
- Highcharts - Force area-step series to overlap columns series at beginning and end of x axis
- How to get Pie Chart data to display using AppCoda example and iOS Charts?
- Making Javascript button toggle function work with dropdown selection
- draw images on xaxis in GWT highcharts
- highcharts tooltip not moving next point
- Highcharts chart dynamic json data from sql
- Plotline to touch the yaxis
- Highcharts - Bar chart show full label on Y Axis
- Area chart,scrollable, with selectors and range filters
- Y value minus 1 in tooltip HighCharts
- ScatterPlot Point Click Event Not Working
- Highcharts - Remove "hover" state from chart point (that was set externally)
- highcharts , Hide a chart
- Drilldown on multiple Highcharts with the same data
- Define colors in pie chart dynamically data
- HighCharts Export burger menu not showing in AngularJS app
- Seeking Guidance on Implementing HighCharts in Joomla
- Changing the styles of a label of plotLines in HighChart
- How to drop the decimals from Highcharts 3D columns and tooltip?
- How to have data labels on top of the graph?