$(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: [[1422748800000,0.23509],[1422835200000,0.23509],[1422921600000,0.23426],[1423008000000,0.23314],[1423094400000,0.24684],[1423180800000,0.27503],[1423267200000,null],[1423353600000,0.33712],[1423440000000,0.33712],[1423526400000,0.37788],[1423612800000,0.37762],[1423699200000,0.39052],[1423785600000,0.37995],[1423872000000,0.39211],[1423958400000,0.39211],[1424044800000,0.39211],[1424131200000,0.40024],[1424217600000,0.42064],[1424304000000,0.42651],[1424390400000,0.43843],[1424476800000,0.44839],[1424563200000,0.44839],[1424649600000,0.44839],[1424736000000,0.45928],[1424822400000,0.45835],[1424908800000,0.44161],[1424995200000,0.47947],[1425081600000,0.4573]], 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: [[1422748800000, 0.235090],[1422748800000, 0.235090],[1422835200000, 0.235090],[1422921600000, 0.234260],[1423008000000, 0.233140],[1423094400000, 0.246840],[1423180800000, 0.275030],[1423353600000, 0.337120],[1423440000000, 0.337120],[1423526400000, 0.377880],[1423612800000, 0.377620],[1423699200000, 0.390520],[1423785600000, 0.379950],[1423872000000, 0.392110],[1423958400000, 0.392110],[1424044800000, 0.392110],[1424131200000, 0.400240],[1424217600000, 0.420640],[1424304000000, 0.426510],[1424390400000, 0.438430],[1424476800000, 0.448390],[1424563200000, 0.448390],[1424649600000, 0.448390],[1424736000000, 0.459280],[1424822400000, 0.458350],[1424908800000, 0.441610],[1424995200000, 0.479470],[1425081600000, 0.457300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });