Hommer Smith
Hommer Smith

Reputation: 27852

Opacity colors in Highcharts (with default color)

In highcharts there is a possibility to add color into the series. So you could say that a particular data in the series, has color: 'rgba(150,100,50,0.5)'

series: [{
         name: 'Tokyo',
         data: [95.6, 54.4]

      }, {
         name: 'New York',
         data: [106.6, 92.3]

      }, {
         name: 'London',
         data: [59.3, 51.2]

      }, {
         name: 'Berlin',
         data: [46.8, 51.1],
         color: 'rgba(150,100,50,0.5)'

      }]

However, I just want to tell highcharts to set opacity in a particular data. I want it to use the default color that it would use.

Can I do that?

Upvotes: 0

Views: 411

Answers (1)

Lordn__n
Lordn__n

Reputation: 328

As you can see in the demo code in gradient fill you can customize the colors you want to use. You can put rgba colors here.

Upvotes: 1

Related Questions