Aniket Tiwari
Aniket Tiwari

Reputation: 3998

How to add opacity in spline chart

How to add opacity in spline chart for Highcharts 7.0.1.

As per the documentation, I can see the opacity option is only available in Highcharts 7.1.0 and above. Is there any way to add the option for the version 7.0.1

plotOptions: {
      column: {
        
      },
       spline: {
         opacity: '0.4'
       }
    },

link

Upvotes: 1

Views: 216

Answers (1)

ppotaczek
ppotaczek

Reputation: 39099

You can set the series color in rgba format:

    series: [{
        ...,
        color: 'rgba(55,55,55,0.5)'
    }]

Live demo: http://jsfiddle.net/BlackLabel/fvu9ka4p/

API Reference: https://api.highcharts.com/highcharts/series.line.color

Upvotes: 2

Related Questions