$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1514764800000,28.0672],[1514851200000,28.0672],[1514937600000,28.0672],[1515024000000,27.8905],[1515110400000,28.0134],[1515196800000,28.2033],[1515283200000,28.2033],[1515369600000,28.2033],[1515456000000,28.2033],[1515542400000,28.2032],[1515628800000,28.3288],[1515715200000,28.4457],[1515801600000,28.5366],[1515888000000,28.5366],[1515974400000,28.5366],[1516060800000,28.5677],[1516147200000,28.6526],[1516233600000,28.6661],[1516320000000,28.7775],[1516406400000,28.8448],[1516492800000,28.8448],[1516579200000,28.8448],[1516665600000,28.8758],[1516752000000,28.8648],[1516838400000,28.8654],[1516924800000,28.7452],[1517011200000,28.5486],[1517097600000,28.5486],[1517184000000,28.5486],[1517270400000,28.2465],[1517356800000,28.0088]], 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, 28.067223],[1514764800000, 28.067223],[1514851200000, 28.067223],[1514937600000, 28.067223],[1515024000000, 27.890540],[1515110400000, 28.013366],[1515196800000, 28.203329],[1515283200000, 28.203329],[1515369600000, 28.203329],[1515456000000, 28.203329],[1515542400000, 28.203244],[1515628800000, 28.328813],[1515715200000, 28.445711],[1515801600000, 28.536637],[1515888000000, 28.536637],[1515974400000, 28.536637],[1516060800000, 28.567664],[1516147200000, 28.652576],[1516233600000, 28.666132],[1516320000000, 28.777485],[1516406400000, 28.844816],[1516492800000, 28.844816],[1516579200000, 28.844816],[1516665600000, 28.875837],[1516752000000, 28.864823],[1516838400000, 28.865367],[1516924800000, 28.745248],[1517011200000, 28.548638],[1517097600000, 28.548638],[1517184000000, 28.548638],[1517270400000, 28.246515],[1517356800000, 28.008791]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });