Noam B.
Noam B.

Reputation: 3250

highcharts graph with one regular column and one stacked column

How do I achieve this with highcharts? I need to have one column in green, and 1 stacked column with red and orange.

No other series. Just one with these 2 columns.

Here is a picture of what I mean:

enter image description here

Upvotes: 0

Views: 30

Answers (1)

Kamil Kulig
Kamil Kulig

Reputation: 5826

You can simply use individual color for every point:

  series: [{
    data: [{
      y: 1,
      color: 'green'
    }, {
      y: 2,
      color: 'red'
    }]
  }, {
    data: [{
      y: 3,
      color: 'orange'
    }]
  }]

Live demo: http://jsfiddle.net/kkulig/cdfyo3y1/


API reference: https://api.highcharts.com/highcharts/series.column.data.color

Upvotes: 1

Related Questions