Whalensdad
Posts: 56
Joined: Tue Jun 01, 2021 4:14 pm

How To for PlotBackgroundColor Gradient in .Net

What is the correct syntax for the PlotBackgroundColor using a gradient in .Net? I can do a single color just fine:

Code: Select all

PlotBackgroundColor = "#FCFFC5"
But the following syntax doesn't work. There does not seem to be a linearGradient or Stops.

Code: Select all

PlotBackgroundColor = {
            linearGradient: [0, 0, 500, 500],
            stops: [
                [0, 'rgb(255, 255, 255)'],
                [1, 'rgb(200, 200, 255)']
            ]
        }
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: How To for PlotBackgroundColor Gradient in .Net

Hello Whalensdad,

It looks like the same question as from Example #3 from your topic Is there More In-Depth Documentation fo ... ghcharts? You will get the answer asap in that topic from the link.

Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”