$(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: [[1283299200000,5.81652],[1283385600000,5.84257],[1283472000000,5.86456],[1283558400000,5.87621],[1283644800000,5.87621],[1283731200000,5.87621],[1283817600000,5.87819],[1283904000000,5.86659],[1283990400000,5.88055],[1284076800000,5.89407],[1284163200000,5.90078],[1284249600000,5.90078],[1284336000000,5.90078],[1284422400000,5.90692],[1284508800000,5.91735],[1284595200000,5.92014],[1284681600000,5.92694],[1284768000000,5.92964],[1284854400000,5.92964],[1284940800000,5.92964],[1285027200000,5.93872],[1285113600000,5.94563],[1285200000000,5.97348],[1285286400000,5.95727],[1285372800000,5.9737],[1285459200000,5.9737],[1285545600000,5.9737],[1285632000000,5.98957],[1285718400000,5.99143],[1285804800000,6.01265]], 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: [[1283299200000, 5.816516],[1283299200000, 5.816516],[1283385600000, 5.842570],[1283472000000, 5.864558],[1283558400000, 5.876207],[1283644800000, 5.876207],[1283731200000, 5.876207],[1283817600000, 5.878185],[1283904000000, 5.866587],[1283990400000, 5.880551],[1284076800000, 5.894066],[1284163200000, 5.900777],[1284249600000, 5.900777],[1284336000000, 5.900777],[1284422400000, 5.906924],[1284508800000, 5.917352],[1284595200000, 5.920143],[1284681600000, 5.926937],[1284768000000, 5.929638],[1284854400000, 5.929638],[1284940800000, 5.929638],[1285027200000, 5.938719],[1285113600000, 5.945631],[1285200000000, 5.973482],[1285286400000, 5.957271],[1285372800000, 5.973695],[1285459200000, 5.973695],[1285545600000, 5.973695],[1285632000000, 5.989568],[1285718400000, 5.991434],[1285804800000, 6.012652]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });