I am looking for creating a column chart at highchart as the following picture:
. In this picture, each column has a linear gradient background color and a start and end value is defined for each column. Also,The raw chart can be found at the following link :
chart raw sample:
https://jsfiddle.net/v091rnj5/20/
The values between start and end of each column, and linear gradient of each column is most important to impelement.
2
Answers
To create a column chart in Highcharts where each column has a linear gradient background color and specific start and end values, you can use the following this code
So, for each column in the chart, you’ll repeat this structure, only updating the
y
value and the colors instops
.To apply the gradient, you can use color-axis feature with the defined
colorKey
asx
for the series.To show x-axis labels at the beginning of columns, set
pointPlacement: 'between'
.Live demo: https://jsfiddle.net/BlackLabel/0okqmwrv/
API Reference:
https://api.highcharts.com/highcharts/colorAxis
https://api.highcharts.com/highcharts/xAxis