$(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: [[1388534400000,1.31696],[1388620800000,1.31696],[1388707200000,1.31696],[1388793600000,1.31982],[1388880000000,1.31982],[1388966400000,1.31982],[1389052800000,1.31982],[1389139200000,1.31982],[1389225600000,1.32107],[1389312000000,1.32033],[1389398400000,1.3207],[1389484800000,1.3207],[1389571200000,1.3207],[1389657600000,1.32237],[1389744000000,1.32273],[1389830400000,1.32201],[1389916800000,1.31958],[1390003200000,1.32121],[1390089600000,1.32121],[1390176000000,1.32121],[1390262400000,1.32057],[1390348800000,1.321],[1390435200000,1.32063],[1390521600000,1.32096],[1390608000000,1.3211],[1390694400000,1.3211],[1390780800000,1.3211],[1390867200000,1.32176],[1390953600000,1.32096],[1391040000000,1.31998],[1391126400000,1.31828]], 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: [[1388534400000, 1.316961],[1388534400000, 1.316961],[1388620800000, 1.316961],[1388707200000, 1.316961],[1388793600000, 1.319824],[1388880000000, 1.319824],[1388966400000, 1.319824],[1389052800000, 1.319824],[1389139200000, 1.319824],[1389225600000, 1.321072],[1389312000000, 1.320333],[1389398400000, 1.320697],[1389484800000, 1.320697],[1389571200000, 1.320697],[1389657600000, 1.322369],[1389744000000, 1.322730],[1389830400000, 1.322013],[1389916800000, 1.319583],[1390003200000, 1.321208],[1390089600000, 1.321208],[1390176000000, 1.321208],[1390262400000, 1.320567],[1390348800000, 1.321000],[1390435200000, 1.320631],[1390521600000, 1.320964],[1390608000000, 1.321099],[1390694400000, 1.321099],[1390780800000, 1.321099],[1390867200000, 1.321763],[1390953600000, 1.320956],[1391040000000, 1.319977],[1391126400000, 1.318279]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });