Javascript examples for highcharts:Chart Configuration
generate topgrading snapshot 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.src.js"></script> <script src="https://code.highcharts.com/modules/heatmap.src.js"></script> <div id="container"></div> <script type="text/javascript"> var chart = Highcharts.chart('container', { yAxis: [{/*from www . ja v a 2 s .co m*/ // primary min: -3, height: '70%', min: 0 }, { // heatmap series axis visible: false, linkedTo: 0, }], plotOptions: { heatmap: { yAxis: 1, dataLabels: { enabled: true } } }, series: [ // first block { // area series type: 'area', data: [ [0, 0], [0, 4], [1.5, 7], [1.5, 0] ], marker: { enabled: true } }, { // corresponding heatmap series type: 'heatmap', data: [ [0.75, -0.5, 0], [0.75, -1.5, 0] ], colsize: 1.5 }, // second block { // area series type: 'area', data: [ [1.5, 0], [1.5, 4], [2.5, 4], [2.5, 1] ], marker: { enabled: true } }, { // corresponding heatmap series type: 'heatmap', data: [ [2, -0.5, 0], [2, -1.5, 0] ], colsize: 1 } ] }); </script> </body> </html>