$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1454284800000,25.555],[1454371200000,25.4484],[1454457600000,25.8728],[1454544000000,25.6984],[1454630400000,25.8927],[1454716800000,25.913],[1454803200000,25.913],[1454889600000,25.913],[1454976000000,25.8774],[1455062400000,25.9445],[1455148800000,25.9412],[1455235200000,26.0837],[1455321600000,26.1474],[1455408000000,26.1474],[1455494400000,26.1474],[1455580800000,26.8181],[1455667200000,27.0198],[1455753600000,26.7237],[1455840000000,26.4623],[1455926400000,26.8558],[1456012800000,26.8558],[1456099200000,26.8558],[1456185600000,27.0145],[1456272000000,27.2339],[1456358400000,27.2186],[1456444800000,27.2486],[1456531200000,27.0544],[1456617600000,27.0544],[1456704000000,27.0544]], 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: [[1454284800000, 25.555029],[1454284800000, 25.555029],[1454371200000, 25.448377],[1454457600000, 25.872756],[1454544000000, 25.698375],[1454630400000, 25.892673],[1454716800000, 25.912994],[1454803200000, 25.912994],[1454889600000, 25.912994],[1454976000000, 25.877397],[1455062400000, 25.944535],[1455148800000, 25.941180],[1455235200000, 26.083668],[1455321600000, 26.147430],[1455408000000, 26.147430],[1455494400000, 26.147430],[1455580800000, 26.818080],[1455667200000, 27.019798],[1455753600000, 26.723709],[1455840000000, 26.462253],[1455926400000, 26.855762],[1456012800000, 26.855762],[1456099200000, 26.855762],[1456185600000, 27.014507],[1456272000000, 27.233858],[1456358400000, 27.218630],[1456444800000, 27.248642],[1456531200000, 27.054389],[1456617600000, 27.054389],[1456704000000, 27.054389]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });