$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1514764800000,0.48703],[1514851200000,0.48703],[1514937600000,0.48703],[1515024000000,0.48421],[1515110400000,0.48634],[1515196800000,0.48964],[1515283200000,0.48964],[1515369600000,0.48964],[1515456000000,0.48964],[1515542400000,0.49439],[1515628800000,0.4981],[1515715200000,0.49909],[1515801600000,0.50416],[1515888000000,0.50416],[1515974400000,0.50416],[1516060800000,0.50691],[1516147200000,0.50813],[1516233600000,0.50654],[1516320000000,0.50701],[1516406400000,0.50972],[1516492800000,0.50972],[1516579200000,0.50972],[1516665600000,0.50994],[1516752000000,0.51168],[1516838400000,0.5119],[1516924800000,0.51396],[1517011200000,0.51136],[1517097600000,0.51136],[1517184000000,0.51136],[1517270400000,0.5018],[1517356800000,0.49757]], 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: [[1514764800000, 0.487030],[1514764800000, 0.487030],[1514851200000, 0.487030],[1514937600000, 0.487030],[1515024000000, 0.484210],[1515110400000, 0.486340],[1515196800000, 0.489640],[1515283200000, 0.489640],[1515369600000, 0.489640],[1515456000000, 0.489640],[1515542400000, 0.494390],[1515628800000, 0.498100],[1515715200000, 0.499090],[1515801600000, 0.504160],[1515888000000, 0.504160],[1515974400000, 0.504160],[1516060800000, 0.506910],[1516147200000, 0.508130],[1516233600000, 0.506540],[1516320000000, 0.507010],[1516406400000, 0.509720],[1516492800000, 0.509720],[1516579200000, 0.509720],[1516665600000, 0.509940],[1516752000000, 0.511680],[1516838400000, 0.511900],[1516924800000, 0.513960],[1517011200000, 0.511360],[1517097600000, 0.511360],[1517184000000, 0.511360],[1517270400000, 0.501800],[1517356800000, 0.497570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });