$(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: [[1443657600000,3.35049],[1443744000000,3.3275],[1443830400000,3.3266],[1443916800000,3.3266],[1444003200000,3.3266],[1444089600000,3.33785],[1444176000000,3.34465],[1444262400000,3.3458],[1444348800000,3.35215],[1444435200000,3.3878],[1444521600000,3.3878],[1444608000000,3.3878],[1444694400000,3.45027],[1444780800000,3.45886],[1444867200000,3.45886],[1444953600000,3.41842],[1445040000000,3.3529],[1445126400000,3.3529],[1445212800000,3.3529],[1445299200000,3.39879],[1445385600000,3.46367],[1445472000000,3.56101],[1445558400000,3.50429],[1445644800000,3.55473],[1445731200000,3.55473],[1445817600000,3.55473],[1445904000000,3.60603],[1445990400000,3.5991],[1446076800000,3.59935],[1446163200000,3.6041],[1446249600000,3.6343]], 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: [[1443657600000, 3.350490],[1443657600000, 3.350490],[1443744000000, 3.327497],[1443830400000, 3.326598],[1443916800000, 3.326598],[1444003200000, 3.326598],[1444089600000, 3.337846],[1444176000000, 3.344652],[1444262400000, 3.345802],[1444348800000, 3.352150],[1444435200000, 3.387798],[1444521600000, 3.387798],[1444608000000, 3.387798],[1444694400000, 3.450270],[1444780800000, 3.458862],[1444867200000, 3.458862],[1444953600000, 3.418417],[1445040000000, 3.352899],[1445126400000, 3.352899],[1445212800000, 3.352899],[1445299200000, 3.398789],[1445385600000, 3.463665],[1445472000000, 3.561005],[1445558400000, 3.504293],[1445644800000, 3.554734],[1445731200000, 3.554734],[1445817600000, 3.554734],[1445904000000, 3.606034],[1445990400000, 3.599096],[1446076800000, 3.599352],[1446163200000, 3.604097],[1446249600000, 3.634304]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });