/
var
/
www
/
barefootlaw.org
/
bios2
/
charts
/
examples
/
area-basic
/
Upload File
HOME
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Highcharts Example</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <style type="text/css"> ${demo.css} </style> <script type="text/javascript"> $(function () { $('#container').highcharts({ chart: { type: 'area' }, title: { text: 'Fuel Usage' }, xAxis: { categories: ['12am', '1am', '2am', '3am', '4am', '5am', '6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm', '8pm', '9pm', '10pm', '11pm'], allowDecimals: false, labels: { formatter: function () { return this.value; // clean, unformatted number for year } } }, yAxis: { title: { text: 'Fuel-Litres' }, labels: { formatter: function () { return this.value; } } }, tooltip: { pointFormat: '<b>{point.y:,.0f}</b> liters at {point.x}' }, plotOptions: { area: { pointStart: 0, marker: { enabled: false, symbol: 'circle', radius: 2, states: { hover: { enabled: true } } } } }, series: [{ name: 'UAT7XXXX', data: [10, 9, 8.4, 8, 6, 5, 4, 1, 59, 59, 57, 55, 54, 51, 49, 48.5, 45, 40, 38, 35, 33, 34, 31, 34] }] }); }); </script> </head> <body> <script src="../../js/highcharts.js"></script> <script src="../../js/modules/exporting.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> </body> </html>