Xchart gradient
by amrutaJgtp
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>
CSS
#container {
height: 400px;
}
JavaScript
Highcharts.chart('container', {
"chart": {
"inverted": false,
"backgroundColor": "rgba(255,255,255,0)",
"plotBackgroundColor": "rgba(255,255,255,0)",
"zoomType": "xy",
"resetZoomButton": {
"theme": {
"style": {
"visibility": "hidden"
}
}
},
"spacingBottom": 5,
"spacingTop": 10
},
"title": {
"text": ".",
"style": {
"color": "rgba(255, 255, 255, 0)",
"fontSize": "1px"
},
"floating": true,
"margin": 0
},
"tooltip": {
"enabled": true,
"borderWidth": 1,
"borderRadius": 1,
"backgroundColor": "#ffffff",
"style": {
"color": "#000000",
"fontSize": "1rem",
"fontFamily": "Open Sans",
"fontWeight": "normal",
"fontStyle": "normal",
"textDecoration": "none"
},
"useHTML": true,
"shared": false,
"crosshairs": [false, false],
"followPointer": true
},
"plotOptions": {
"series": {
"animation": null,
"cursor": "pointer",
"allowPointSelect": true,
"showInLegend": false,
"turboThreshold": 0,
"stickyTracking": false,
"events": {},
"point": {
"events": {}
},
"pointPadding": 0.1,
"getExtremesFromAll": true
}
},
"legend": {
"enabled": false,
"item": {},
"borderWidth": 0,
"layout": "horizontal",
"eQLegendPlacement": "CHART",
"backgroundColor": "rgba(255,255,255,0)",
"itemHoverStyle": {
"color": "#000000",
"fontSize": "1rem",
"fontFamily": "Open Sans",
"fontWeight": "normal",
"fontStyle": "normal",
"textDecoration": "none"
},
"itemStyle": {
"color": "#000000",
"fontSize": "1rem",
"fontFamily": "Open Sans",
"fontWeight": "normal",
"fontStyle": "normal",
"textDecoration": "none"
},
"align": "center",
"verticalAlign": "bottom",
"margin": 0,
"padding": 5
},
"credits": {
"enabled": false
...