Javascript examples for highcharts:Line Chart
Gradient fill for react-highcharts' line chart
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px"></div> <script type="text/javascript"> var data = [50, 71.5];/* w ww .j av a2s. co m*/ Highcharts.chart('container', { chart: { type: 'area' }, plotOptions: { series: { fillColor: { linearGradient: [0, 0, 0, 300], stops: [ [0, Highcharts.getOptions().colors[0]], [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')] ] }, threshold: Math.min(...data) } }, series: [{ data: data }] }); </script> </body> </html>