$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1422748800000,17.6269],[1422835200000,17.6269],[1422921600000,17.4381],[1423008000000,17.4628],[1423094400000,18.0798],[1423180800000,19.4327],[1423267200000,null],[1423353600000,24.9287],[1423440000000,24.9287],[1423526400000,27.1192],[1423612800000,26.8581],[1423699200000,27.6111],[1423785600000,27.1354],[1423872000000,27.8061],[1423958400000,27.8061],[1424044800000,27.8061],[1424131200000,28.0327],[1424217600000,28.2985],[1424304000000,28.7761],[1424390400000,29.0572],[1424476800000,29.3835],[1424563200000,29.3835],[1424649600000,29.3835],[1424736000000,29.8821],[1424822400000,29.7972],[1424908800000,29.5403],[1424995200000,31.6064],[1425081600000,29.2411]], 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, 17.626851],[1422748800000, 17.626851],[1422835200000, 17.626851],[1422921600000, 17.438077],[1423008000000, 17.462761],[1423094400000, 18.079831],[1423180800000, 19.432681],[1423353600000, 24.928678],[1423440000000, 24.928678],[1423526400000, 27.119195],[1423612800000, 26.858130],[1423699200000, 27.611120],[1423785600000, 27.135374],[1423872000000, 27.806140],[1423958400000, 27.806140],[1424044800000, 27.806140],[1424131200000, 28.032700],[1424217600000, 28.298532],[1424304000000, 28.776059],[1424390400000, 29.057167],[1424476800000, 29.383538],[1424563200000, 29.383538],[1424649600000, 29.383538],[1424736000000, 29.882110],[1424822400000, 29.797164],[1424908800000, 29.540256],[1424995200000, 31.606372],[1425081600000, 29.241064]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });