$(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: [[1243814400000,1.11575],[1243900800000,1.11485],[1243987200000,1.11424],[1244073600000,1.11408],[1244160000000,1.114],[1244246400000,1.114],[1244332800000,1.114],[1244419200000,1.114],[1244505600000,1.114],[1244592000000,1.11334],[1244678400000,1.11364],[1244764800000,1.11347],[1244851200000,1.11378],[1244937600000,1.11378],[1245024000000,1.11378],[1245110400000,1.11336],[1245196800000,1.11373],[1245283200000,1.11431],[1245369600000,1.11452],[1245456000000,1.11419],[1245542400000,1.11419],[1245628800000,1.11419],[1245715200000,1.11333],[1245801600000,1.11358],[1245888000000,1.11573],[1245974400000,1.11614],[1246060800000,1.11656],[1246147200000,1.11656],[1246233600000,1.11656],[1246320000000,1.11656]], 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: [[1243814400000, 1.115752],[1243814400000, 1.115752],[1243900800000, 1.114845],[1243987200000, 1.114245],[1244073600000, 1.114085],[1244160000000, 1.113999],[1244246400000, 1.113996],[1244332800000, 1.113996],[1244419200000, 1.113996],[1244505600000, 1.113996],[1244592000000, 1.113341],[1244678400000, 1.113643],[1244764800000, 1.113467],[1244851200000, 1.113782],[1244937600000, 1.113782],[1245024000000, 1.113782],[1245110400000, 1.113365],[1245196800000, 1.113734],[1245283200000, 1.114308],[1245369600000, 1.114519],[1245456000000, 1.114186],[1245542400000, 1.114186],[1245628800000, 1.114186],[1245715200000, 1.113330],[1245801600000, 1.113579],[1245888000000, 1.115725],[1245974400000, 1.116139],[1246060800000, 1.116556],[1246147200000, 1.116556],[1246233600000, 1.116556],[1246320000000, 1.116556]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });