$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1128124800000,2.98787],[1128211200000,2.98787],[1128297600000,2.98787],[1128384000000,2.97691],[1128470400000,2.98155],[1128556800000,2.9835],[1128643200000,2.99774],[1128729600000,2.99874],[1128816000000,2.99874],[1128902400000,2.99874],[1128988800000,2.99619],[1129075200000,2.99099],[1129161600000,2.98501],[1129248000000,2.98289],[1129334400000,2.98527],[1129420800000,2.98527],[1129507200000,2.98527],[1129593600000,2.98393],[1129680000000,2.97732],[1129766400000,2.97998],[1129852800000,2.97925],[1129939200000,2.98101],[1130025600000,2.98101],[1130112000000,2.98101],[1130198400000,2.97936],[1130284800000,2.98299],[1130371200000,2.98329],[1130457600000,2.99192],[1130544000000,2.98543],[1130630400000,2.98543],[1130716800000,2.98543]], 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, 2.987869],[1128124800000, 2.987869],[1128211200000, 2.987869],[1128297600000, 2.987869],[1128384000000, 2.976913],[1128470400000, 2.981548],[1128556800000, 2.983501],[1128643200000, 2.997738],[1128729600000, 2.998738],[1128816000000, 2.998738],[1128902400000, 2.998738],[1128988800000, 2.996191],[1129075200000, 2.990989],[1129161600000, 2.985006],[1129248000000, 2.982891],[1129334400000, 2.985267],[1129420800000, 2.985267],[1129507200000, 2.985267],[1129593600000, 2.983933],[1129680000000, 2.977323],[1129766400000, 2.979976],[1129852800000, 2.979253],[1129939200000, 2.981011],[1130025600000, 2.981011],[1130112000000, 2.981011],[1130198400000, 2.979363],[1130284800000, 2.982985],[1130371200000, 2.983293],[1130457600000, 2.991917],[1130544000000, 2.985432],[1130630400000, 2.985432],[1130716800000, 2.985432]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });