Highcharts, how to use gradient without setting a color?

Viewed 38

I'm looking to set a gradient color for my graph area's where the color goes from it's "default" color to white/transparent.

I'm working how can I "Choose" not set a value and let it auto decide the area color.

This is what my code is producting now: image of my graph now

(I'm looking to match the fill color to the "outline" color that's auto set)

Code that's being used to set this "yellow-ish color" right now

        linearGradient: {
          x1: 0,
          y1: 0,
          x2: 0,
          y2: 1
        },
        stops: [
          [0, "#ffff00"],
          [
            1,
            Highcharts.color("#DADADA")
              .setOpacity(0)
              .get("rgba")
          ]
        ]
      },
1 Answers
Related