$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1409529600000,20.6557],[1409616000000,19.9123],[1409702400000,19.7521],[1409788800000,18.9684],[1409875200000,null],[1409961600000,19.403],[1410048000000,19.403],[1410134400000,19.403],[1410220800000,19.2842],[1410307200000,19.409],[1410393600000,19.4047],[1410480000000,19.4695],[1410566400000,19.419],[1410652800000,19.419],[1410739200000,19.419],[1410825600000,19.355],[1410912000000,19.4789],[1410998400000,19.6261],[1411084800000,20.1618],[1411171200000,null],[1411257600000,20.1156],[1411344000000,20.1156],[1411430400000,null],[1411516800000,20.2255],[1411603200000,19.3961],[1411689600000,19.3832],[1411776000000,19.2335],[1411862400000,19.2335],[1411948800000,19.2335],[1412035200000,19.2475]], 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: [[1409529600000, 20.655687],[1409529600000, 20.655687],[1409616000000, 19.912256],[1409702400000, 19.752127],[1409788800000, 18.968391],[1409961600000, 19.402999],[1410048000000, 19.402999],[1410134400000, 19.402999],[1410220800000, 19.284229],[1410307200000, 19.408952],[1410393600000, 19.404716],[1410480000000, 19.469531],[1410566400000, 19.418996],[1410652800000, 19.418996],[1410739200000, 19.418996],[1410825600000, 19.354964],[1410912000000, 19.478914],[1410998400000, 19.626053],[1411084800000, 20.161750],[1411257600000, 20.115615],[1411344000000, 20.115615],[1411516800000, 20.225473],[1411603200000, 19.396138],[1411689600000, 19.383167],[1411776000000, 19.233498],[1411862400000, 19.233498],[1411948800000, 19.233498],[1412035200000, 19.247463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });