$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1485907200000,3.93728],[1485993600000,3.92237],[1486080000000,3.92158],[1486166400000,3.94226],[1486252800000,3.94226],[1486339200000,3.94226],[1486425600000,3.97331],[1486512000000,3.92675],[1486598400000,3.91598],[1486684800000,3.93599],[1486771200000,3.95489],[1486857600000,3.95489],[1486944000000,3.95489],[1487030400000,3.95196],[1487116800000,3.96792],[1487203200000,3.92876],[1487289600000,3.93662],[1487376000000,3.93563],[1487462400000,3.93563],[1487548800000,3.93563],[1487635200000,3.92955],[1487721600000,3.92787],[1487808000000,3.92148],[1487894400000,3.91345],[1487980800000,3.9273],[1488067200000,3.9273],[1488153600000,3.9273],[1488240000000,3.93668]], 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: [[1485907200000, 3.937277],[1485907200000, 3.937277],[1485993600000, 3.922374],[1486080000000, 3.921579],[1486166400000, 3.942265],[1486252800000, 3.942265],[1486339200000, 3.942265],[1486425600000, 3.973312],[1486512000000, 3.926755],[1486598400000, 3.915981],[1486684800000, 3.935990],[1486771200000, 3.954888],[1486857600000, 3.954888],[1486944000000, 3.954888],[1487030400000, 3.951958],[1487116800000, 3.967919],[1487203200000, 3.928758],[1487289600000, 3.936620],[1487376000000, 3.935630],[1487462400000, 3.935630],[1487548800000, 3.935630],[1487635200000, 3.929553],[1487721600000, 3.927868],[1487808000000, 3.921475],[1487894400000, 3.913446],[1487980800000, 3.927304],[1488067200000, 3.927304],[1488153600000, 3.927304],[1488240000000, 3.936682]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });