-
-
Save dbergey/2172335 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (type == 'blah') | |
var conditionalArea = { | |
stuff: "nonsense" | |
}; | |
else { | |
var conditionalArea = { | |
fillColor: { | |
linearGradient: [0, 0, 0, 300], | |
stops: [ | |
[0, Highcharts.getOptions().colors[0]], | |
[1, 'rgba(2,0,0,0)'] | |
] | |
}, | |
lineWidth: 1, | |
marker: { | |
enabled: false, | |
states: { | |
hover: { | |
enabled: true, | |
radius: 5 | |
} | |
} | |
}, | |
shadow: false, | |
states: { | |
hover: { | |
lineWidth: 1 | |
} | |
} | |
} | |
} | |
{ | |
plotOptions: { | |
area: conditionalArea, | |
other: stuff | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment