$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1128124800000,4.32426],[1128211200000,4.32426],[1128297600000,4.32426],[1128384000000,4.33444],[1128470400000,4.32629],[1128556800000,4.30116],[1128643200000,4.27095],[1128729600000,4.28113],[1128816000000,4.28113],[1128902400000,4.28113],[1128988800000,4.29648],[1129075200000,4.27453],[1129161600000,4.30715],[1129248000000,4.3023],[1129334400000,4.26455],[1129420800000,4.26455],[1129507200000,4.26455],[1129593600000,4.26492],[1129680000000,4.25509],[1129766400000,4.2897],[1129852800000,4.29261],[1129939200000,4.28334],[1130025600000,4.28334],[1130112000000,4.28334],[1130198400000,4.23993],[1130284800000,4.25537],[1130371200000,4.29191],[1130457600000,4.32358],[1130544000000,4.31334],[1130630400000,4.31334],[1130716800000,4.31334]], 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: [[1128124800000, 4.324262],[1128124800000, 4.324262],[1128211200000, 4.324262],[1128297600000, 4.324262],[1128384000000, 4.334435],[1128470400000, 4.326294],[1128556800000, 4.301158],[1128643200000, 4.270952],[1128729600000, 4.281131],[1128816000000, 4.281131],[1128902400000, 4.281131],[1128988800000, 4.296481],[1129075200000, 4.274527],[1129161600000, 4.307152],[1129248000000, 4.302304],[1129334400000, 4.264547],[1129420800000, 4.264547],[1129507200000, 4.264547],[1129593600000, 4.264917],[1129680000000, 4.255089],[1129766400000, 4.289700],[1129852800000, 4.292608],[1129939200000, 4.283336],[1130025600000, 4.283336],[1130112000000, 4.283336],[1130198400000, 4.239927],[1130284800000, 4.255371],[1130371200000, 4.291913],[1130457600000, 4.323581],[1130544000000, 4.313342],[1130630400000, 4.313342],[1130716800000, 4.313342]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });