$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1514764800000,1.64134],[1514851200000,1.64134],[1514937600000,1.64134],[1515024000000,1.63359],[1515110400000,1.63986],[1515196800000,1.65281],[1515283200000,1.65281],[1515369600000,1.65281],[1515456000000,1.65281],[1515542400000,1.65153],[1515628800000,1.66008],[1515715200000,1.66856],[1515801600000,1.67433],[1515888000000,1.67433],[1515974400000,1.67433],[1516060800000,1.67809],[1516147200000,1.68753],[1516233600000,1.69318],[1516320000000,1.70046],[1516406400000,1.71011],[1516492800000,1.71011],[1516579200000,1.71011],[1516665600000,1.71363],[1516752000000,1.71292],[1516838400000,1.71588],[1516924800000,1.71077],[1517011200000,1.70375],[1517097600000,1.70375],[1517184000000,1.70375],[1517270400000,1.68641],[1517356800000,1.67536]], 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, 1.641339],[1514764800000, 1.641339],[1514851200000, 1.641339],[1514937600000, 1.641339],[1515024000000, 1.633586],[1515110400000, 1.639858],[1515196800000, 1.652807],[1515283200000, 1.652807],[1515369600000, 1.652807],[1515456000000, 1.652807],[1515542400000, 1.651534],[1515628800000, 1.660083],[1515715200000, 1.668556],[1515801600000, 1.674332],[1515888000000, 1.674332],[1515974400000, 1.674332],[1516060800000, 1.678092],[1516147200000, 1.687530],[1516233600000, 1.693175],[1516320000000, 1.700455],[1516406400000, 1.710113],[1516492800000, 1.710113],[1516579200000, 1.710113],[1516665600000, 1.713628],[1516752000000, 1.712924],[1516838400000, 1.715879],[1516924800000, 1.710772],[1517011200000, 1.703745],[1517097600000, 1.703745],[1517184000000, 1.703745],[1517270400000, 1.686409],[1517356800000, 1.675357]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });