$(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: [[1183248000000,3.28295],[1183334400000,3.28295],[1183420800000,3.31111],[1183507200000,3.3146],[1183593600000,3.32082],[1183680000000,3.32474],[1183766400000,3.31738],[1183852800000,3.31738],[1183939200000,3.31738],[1184025600000,3.32428],[1184112000000,3.32755],[1184198400000,3.33282],[1184284800000,3.33203],[1184371200000,3.33377],[1184457600000,3.33377],[1184544000000,3.33377],[1184630400000,3.33081],[1184716800000,3.32824],[1184803200000,3.32444],[1184889600000,3.33848],[1184976000000,3.34221],[1185062400000,3.34221],[1185148800000,3.34221],[1185235200000,3.3485],[1185321600000,3.35478],[1185408000000,3.3463],[1185494400000,3.33315],[1185580800000,3.33709],[1185667200000,3.33709],[1185753600000,3.33709]], 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: [[1183248000000, 3.282952],[1183248000000, 3.282952],[1183334400000, 3.282952],[1183420800000, 3.311108],[1183507200000, 3.314596],[1183593600000, 3.320822],[1183680000000, 3.324742],[1183766400000, 3.317379],[1183852800000, 3.317379],[1183939200000, 3.317379],[1184025600000, 3.324282],[1184112000000, 3.327546],[1184198400000, 3.332821],[1184284800000, 3.332029],[1184371200000, 3.333769],[1184457600000, 3.333769],[1184544000000, 3.333769],[1184630400000, 3.330815],[1184716800000, 3.328239],[1184803200000, 3.324445],[1184889600000, 3.338484],[1184976000000, 3.342211],[1185062400000, 3.342211],[1185148800000, 3.342211],[1185235200000, 3.348496],[1185321600000, 3.354783],[1185408000000, 3.346295],[1185494400000, 3.333146],[1185580800000, 3.337087],[1185667200000, 3.337087],[1185753600000, 3.337087]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });