$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1446336000000,35.2718],[1446422400000,35.2718],[1446508800000,35.6007],[1446595200000,35.4289],[1446681600000,35.5787],[1446768000000,35.0124],[1446854400000,34.2867],[1446940800000,34.2867],[1447027200000,34.2867],[1447113600000,34.3379],[1447200000000,34.4151],[1447286400000,34.5415],[1447372800000,34.7976],[1447459200000,35.1058],[1447545600000,35.1058],[1447632000000,35.1058],[1447718400000,35.2577],[1447804800000,36.1461],[1447891200000,36.3907],[1447977600000,36.406],[1448064000000,36.5688],[1448150400000,36.5688],[1448236800000,36.5688],[1448323200000,36.4157],[1448409600000,36.1206],[1448496000000,35.8599],[1448582400000,35.631],[1448668800000,35.951],[1448755200000,35.951],[1448841600000,35.951]], 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: [[1446336000000, 35.271775],[1446336000000, 35.271775],[1446422400000, 35.271775],[1446508800000, 35.600655],[1446595200000, 35.428878],[1446681600000, 35.578712],[1446768000000, 35.012431],[1446854400000, 34.286681],[1446940800000, 34.286681],[1447027200000, 34.286681],[1447113600000, 34.337931],[1447200000000, 34.415113],[1447286400000, 34.541504],[1447372800000, 34.797595],[1447459200000, 35.105795],[1447545600000, 35.105795],[1447632000000, 35.105795],[1447718400000, 35.257712],[1447804800000, 36.146131],[1447891200000, 36.390683],[1447977600000, 36.405966],[1448064000000, 36.568780],[1448150400000, 36.568780],[1448236800000, 36.568780],[1448323200000, 36.415706],[1448409600000, 36.120556],[1448496000000, 35.859871],[1448582400000, 35.630986],[1448668800000, 35.951012],[1448755200000, 35.951012],[1448841600000, 35.951012]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });