$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс LVL, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс LVL', data: [[1301616000000,15.9391],[1301702400000,15.8717],[1301788800000,15.8717],[1301875200000,15.8717],[1301961600000,15.9877],[1302048000000,15.9182],[1302134400000,16.0642],[1302220800000,16.0383],[1302307200000,16.1777],[1302393600000,16.1777],[1302480000000,16.1777],[1302566400000,16.2106],[1302652800000,16.2538],[1302739200000,16.2881],[1302825600000,16.1782],[1302912000000,16.2332],[1302998400000,16.2332],[1303084800000,16.2332],[1303171200000,16.0407],[1303257600000,16.0611],[1303344000000,16.3003],[1303430400000,16.3778],[1303516800000,16.3778],[1303603200000,16.3778],[1303689600000,16.3778],[1303776000000,16.3778],[1303862400000,16.4148],[1303948800000,16.4721],[1304035200000,16.6136],[1304121600000,16.6875]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1301616000000, 15.939073],[1301616000000, 15.939073],[1301702400000, 15.871737],[1301788800000, 15.871737],[1301875200000, 15.871737],[1301961600000, 15.987673],[1302048000000, 15.918163],[1302134400000, 16.064205],[1302220800000, 16.038321],[1302307200000, 16.177665],[1302393600000, 16.177665],[1302480000000, 16.177665],[1302566400000, 16.210618],[1302652800000, 16.253811],[1302739200000, 16.288121],[1302825600000, 16.178179],[1302912000000, 16.233226],[1302998400000, 16.233226],[1303084800000, 16.233226],[1303171200000, 16.040656],[1303257600000, 16.061067],[1303344000000, 16.300265],[1303430400000, 16.377752],[1303516800000, 16.377752],[1303603200000, 16.377752],[1303689600000, 16.377752],[1303776000000, 16.377752],[1303862400000, 16.414811],[1303948800000, 16.472083],[1304035200000, 16.613581],[1304121600000, 16.687489]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });