$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1422748800000,0.657836],[1422835200000,0.657836],[1422921600000,0.656696],[1423008000000,0.661973],[1423094400000,0.685845],[1423180800000,0.741899],[1423267200000,null],[1423353600000,0.952504],[1423440000000,0.952504],[1423526400000,1.03139],[1423612800000,1.01038],[1423699200000,1.04133],[1423785600000,1.02591],[1423872000000,1.05987],[1423958400000,1.05987],[1424044800000,1.05987],[1424131200000,1.07263],[1424217600000,1.088],[1424304000000,1.10764],[1424390400000,1.12792],[1424476800000,1.1589],[1424563200000,1.1589],[1424649600000,1.1589],[1424736000000,1.1643],[1424822400000,1.16468],[1424908800000,1.15584],[1424995200000,1.24182],[1425081600000,1.1419]], 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.657836],[1422748800000, 0.657836],[1422835200000, 0.657836],[1422921600000, 0.656696],[1423008000000, 0.661973],[1423094400000, 0.685845],[1423180800000, 0.741899],[1423353600000, 0.952504],[1423440000000, 0.952504],[1423526400000, 1.031387],[1423612800000, 1.010377],[1423699200000, 1.041330],[1423785600000, 1.025909],[1423872000000, 1.059869],[1423958400000, 1.059869],[1424044800000, 1.059869],[1424131200000, 1.072626],[1424217600000, 1.087996],[1424304000000, 1.107637],[1424390400000, 1.127923],[1424476800000, 1.158896],[1424563200000, 1.158896],[1424649600000, 1.158896],[1424736000000, 1.164303],[1424822400000, 1.164678],[1424908800000, 1.155839],[1424995200000, 1.241823],[1425081600000, 1.141905]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });