$(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: [[1467331200000,27.5645],[1467417600000,27.6386],[1467504000000,27.6386],[1467590400000,27.6386],[1467676800000,27.6399],[1467763200000,27.6933],[1467849600000,27.4976],[1467936000000,27.4948],[1468022400000,27.4944],[1468108800000,27.4944],[1468195200000,27.4944],[1468281600000,27.4591],[1468368000000,27.5544],[1468454400000,27.4821],[1468540800000,27.6672],[1468627200000,27.6054],[1468713600000,27.6054],[1468800000000,27.6054],[1468886400000,27.474],[1468972800000,27.3826],[1469059200000,27.325],[1469145600000,27.335],[1469232000000,27.3285],[1469318400000,27.3285],[1469404800000,27.3285],[1469491200000,27.2219],[1469577600000,27.2563],[1469664000000,27.2746],[1469750400000,null],[1469836800000,27.5675],[1469923200000,27.5675]], 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: [[1467331200000, 27.564503],[1467331200000, 27.564503],[1467417600000, 27.638642],[1467504000000, 27.638642],[1467590400000, 27.638642],[1467676800000, 27.639864],[1467763200000, 27.693280],[1467849600000, 27.497552],[1467936000000, 27.494796],[1468022400000, 27.494362],[1468108800000, 27.494362],[1468195200000, 27.494362],[1468281600000, 27.459078],[1468368000000, 27.554373],[1468454400000, 27.482128],[1468540800000, 27.667152],[1468627200000, 27.605427],[1468713600000, 27.605427],[1468800000000, 27.605427],[1468886400000, 27.473983],[1468972800000, 27.382589],[1469059200000, 27.325011],[1469145600000, 27.334953],[1469232000000, 27.328545],[1469318400000, 27.328545],[1469404800000, 27.328545],[1469491200000, 27.221902],[1469577600000, 27.256349],[1469664000000, 27.274551],[1469836800000, 27.567512],[1469923200000, 27.567512]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });