score:1
Accepted answer
you can use coloraxis
from heatmap
series by wrapping colum's prototype:
var columnproto = highcharts.seriestypes.column.prototype;
columnproto.axistypes = ['xaxis', 'yaxis', 'coloraxis'];
columnproto.optionalaxis = 'coloraxis';
columnproto.colorkey = 'y';
highcharts.wrap(columnproto, 'translate', function(proceed) {
proceed.apply(this, array.prototype.slice.call(arguments, 1));
highcharts.seriestypes.heatmap.prototype.translatecolors.call(this);
});
highcharts.chart('container', {
series: [{
type: 'bar',
data: [1, 2, 3, 4, 5, 6, 7, 8, 9]
}],
coloraxis: {
mincolor: '#c6e48b',
maxcolor: '#196127',
min: 1,
max: 9
}
});
live demo: http://jsfiddle.net/blacklabel/u8wgh0dk/
api reference: https://api.highcharts.com/highcharts/coloraxis
Source: stackoverflow.com
Related Query
- HighCharts Create gradiance decress color to blur for each value on bar chart
- set individual color for each bar in bar chart using highcharts
- Bar chart in High chart for indication of value with two colors in each bar where one color is always kept fixed
- Passing in Id for each data item in bar chart using highcharts
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- Highcharts - Pie chart Color for each slice
- after using for loop all my column graphs are plotted in single color i need each bar in different color in highcharts
- How to create a legend for bar colors in a Highcharts bar chart
- Highcharts percentage of total for simple bar chart
- Highcharts Change Bar Color Based on Value
- Highcharts dynamically change bar color based on value
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Color each point individually in column chart highcharts
- Importing JSON file into Highcharts for Bar Chart Visualization
- Highcharts Change Bar Background Color Based on categories value
- HighCharts color on each - columnrange bar
- Adding round corners to Highcharts Bar Chart with stacked bars when value is 0
- Splitted bar chart for paired data with highcharts
- Highcharts - In area chart how to use gradient color for multiple series?
- highcharts minPointLength do not work for unstacked bar chart
- Legend for each point in column chart in highcharts
- How to use Highcharts React to create chart with multiple lines for same XAxis?
- Get the end points of each bar in a highcharts column chart
- highcharts pie chart color for dynamic data
- Highcharts column chart color by single color but with different brightness level as per respective column value
- How to change color of bar in column chart with different level of percentage in highcharts
- HIghCharts bar chart renders columns on top of each other
- Changing Color of Data Labels in HighCharts Bar Chart
- Highcharts for multiple plot lines each with a different color and show tooltip?
- Highcharts display label for pie chart using html table as data source
More Query from same tag
- how to make specific labels outside gauge chart
- Legend and Axis titles not showing in Highcharts Graph
- Highcharts real-time line chart with multiple data streams
- Synchronized charts with individual tool-tip for each series
- Why any of highcharts demo example doesn't work?
- How to sort the items within each stacking column?
- Displaying data into a graph in web service ASP.NET MVC Framework
- Highcharts chart creation using d3.csv
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- HighCharts tooltip appearing behind the dialog holding the chart
- Reduce gap between plot area and actual chart in highcharts
- Highcharts, type: 'mapbubble' causes an error 17
- Highcharts: StockChart initialization with new Highchart
- HighCharts Multiple Y-Axes
- BUG? RangeSelector Buttons not working correctly
- Highcharts series.data data type limitations?
- Column Chart with condition-based coloring in R and highcharts
- Highcharts column chart. Sometimes unusable 1px stacked columns. Sometimes usable side by side columns
- Stacking columns but not lines in same chart highcharts
- How to add a header or logo to highcharts exported PDF?
- How to get index of clicked point in scatter plot
- HTML Content to Javascript Code
- updating high chart on real time in angular js after a particular time
- Showing all values on one point on x axis and changing range for rCharts highcharts
- How to set xData as date (Y-M) for Highcharts synchronized charts?
- How to tell Highcharts to set date on the x axis, and use a range of time (like 1 day)
- Highcharts timeseries, X-axis min not working
- Can't access external variables inside events.load method in react-native-highcharts
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highchart X-axis truncate shows weird characters