$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1422748800000,0.058598],[1422835200000,0.058598],[1422921600000,0.058501],[1423008000000,0.059148],[1423094400000,0.061553],[1423180800000,0.066707],[1423267200000,null],[1423353600000,0.0859],[1423440000000,0.0859],[1423526400000,0.093275],[1423612800000,0.091141],[1423699200000,0.093337],[1423785600000,0.09156],[1423872000000,0.095401],[1423958400000,0.095401],[1424044800000,0.095401],[1424131200000,0.096877],[1424217600000,0.097977],[1424304000000,0.099385],[1424390400000,0.101107],[1424476800000,0.103892],[1424563200000,0.103892],[1424649600000,0.103892],[1424736000000,0.104775],[1424822400000,0.104767],[1424908800000,0.104166],[1424995200000,0.111437],[1425081600000,0.103736]], 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.058598],[1422748800000, 0.058598],[1422835200000, 0.058598],[1422921600000, 0.058501],[1423008000000, 0.059148],[1423094400000, 0.061553],[1423180800000, 0.066707],[1423353600000, 0.085900],[1423440000000, 0.085900],[1423526400000, 0.093275],[1423612800000, 0.091141],[1423699200000, 0.093337],[1423785600000, 0.091560],[1423872000000, 0.095401],[1423958400000, 0.095401],[1424044800000, 0.095401],[1424131200000, 0.096877],[1424217600000, 0.097977],[1424304000000, 0.099385],[1424390400000, 0.101107],[1424476800000, 0.103892],[1424563200000, 0.103892],[1424649600000, 0.103892],[1424736000000, 0.104775],[1424822400000, 0.104767],[1424908800000, 0.104166],[1424995200000, 0.111437],[1425081600000, 0.103736]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });