$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1422748800000,18.2826],[1422835200000,18.2826],[1422921600000,18.2542],[1423008000000,18.3691],[1423094400000,19.0308],[1423180800000,20.6025],[1423267200000,null],[1423353600000,26.392],[1423440000000,26.392],[1423526400000,28.5674],[1423612800000,28.0077],[1423699200000,28.8729],[1423785600000,28.3972],[1423872000000,29.3605],[1423958400000,29.3605],[1424044800000,29.3605],[1424131200000,29.6474],[1424217600000,30.07],[1424304000000,30.5918],[1424390400000,31.1115],[1424476800000,31.7225],[1424563200000,31.7225],[1424649600000,31.7225],[1424736000000,32.0276],[1424822400000,31.9634],[1424908800000,31.7705],[1424995200000,34.0495],[1425081600000,31.4195]], 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, 18.282570],[1422748800000, 18.282570],[1422835200000, 18.282570],[1422921600000, 18.254179],[1423008000000, 18.369079],[1423094400000, 19.030830],[1423180800000, 20.602529],[1423353600000, 26.391992],[1423440000000, 26.391992],[1423526400000, 28.567360],[1423612800000, 28.007658],[1423699200000, 28.872948],[1423785600000, 28.397169],[1423872000000, 29.360503],[1423958400000, 29.360503],[1424044800000, 29.360503],[1424131200000, 29.647383],[1424217600000, 30.070020],[1424304000000, 30.591828],[1424390400000, 31.111509],[1424476800000, 31.722467],[1424563200000, 31.722467],[1424649600000, 31.722467],[1424736000000, 32.027645],[1424822400000, 31.963418],[1424908800000, 31.770545],[1424995200000, 34.049545],[1425081600000, 31.419523]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });