$(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: [[1543622400000,0.42419],[1543708800000,0.42419],[1543795200000,0.42419],[1543881600000,0.42498],[1543968000000,0.42329],[1544054400000,0.41865],[1544140800000,0.41775],[1544227200000,0.41577],[1544313600000,0.41577],[1544400000000,0.41577],[1544486400000,0.41933],[1544572800000,0.41673],[1544659200000,0.41866],[1544745600000,0.4206],[1544832000000,0.41902],[1544918400000,0.41902],[1545004800000,0.41902],[1545091200000,0.41858],[1545177600000,0.41723],[1545264000000,0.413],[1545350400000,0.40933],[1545436800000,0.40339],[1545523200000,0.40339],[1545609600000,0.40339],[1545696000000,0.40339],[1545782400000,0.40339],[1545868800000,0.39584],[1545955200000,0.39861],[1546041600000,0.39827],[1546128000000,0.39827],[1546214400000,0.39827]], 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: [[1543622400000, 0.424190],[1543622400000, 0.424190],[1543708800000, 0.424190],[1543795200000, 0.424190],[1543881600000, 0.424980],[1543968000000, 0.423290],[1544054400000, 0.418650],[1544140800000, 0.417750],[1544227200000, 0.415770],[1544313600000, 0.415770],[1544400000000, 0.415770],[1544486400000, 0.419330],[1544572800000, 0.416730],[1544659200000, 0.418660],[1544745600000, 0.420600],[1544832000000, 0.419020],[1544918400000, 0.419020],[1545004800000, 0.419020],[1545091200000, 0.418580],[1545177600000, 0.417230],[1545264000000, 0.413000],[1545350400000, 0.409330],[1545436800000, 0.403390],[1545523200000, 0.403390],[1545609600000, 0.403390],[1545696000000, 0.403390],[1545782400000, 0.403390],[1545868800000, 0.395840],[1545955200000, 0.398610],[1546041600000, 0.398270],[1546128000000, 0.398270],[1546214400000, 0.398270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });