$(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: [[1467331200000,25.3653],[1467417600000,25.5087],[1467504000000,25.5087],[1467590400000,25.5087],[1467676800000,25.5004],[1467763200000,25.5544],[1467849600000,25.4113],[1467936000000,25.4111],[1468022400000,25.3288],[1468108800000,25.3288],[1468195200000,25.3288],[1468281600000,25.2683],[1468368000000,25.27],[1468454400000,25.1922],[1468540800000,25.3827],[1468627200000,25.3284],[1468713600000,25.3284],[1468800000000,25.3284],[1468886400000,25.2774],[1468972800000,25.1748],[1469059200000,25.1103],[1469145600000,25.1425],[1469232000000,25.1644],[1469318400000,25.1644],[1469404800000,25.1644],[1469491200000,25.1148],[1469577600000,25.0748],[1469664000000,24.9584],[1469750400000,null],[1469836800000,25.4712],[1469923200000,25.4712]], 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, 25.365329],[1467331200000, 25.365329],[1467417600000, 25.508668],[1467504000000, 25.508668],[1467590400000, 25.508668],[1467676800000, 25.500382],[1467763200000, 25.554379],[1467849600000, 25.411286],[1467936000000, 25.411087],[1468022400000, 25.328754],[1468108800000, 25.328754],[1468195200000, 25.328754],[1468281600000, 25.268315],[1468368000000, 25.269968],[1468454400000, 25.192160],[1468540800000, 25.382708],[1468627200000, 25.328403],[1468713600000, 25.328403],[1468800000000, 25.328403],[1468886400000, 25.277379],[1468972800000, 25.174762],[1469059200000, 25.110284],[1469145600000, 25.142525],[1469232000000, 25.164406],[1469318400000, 25.164406],[1469404800000, 25.164406],[1469491200000, 25.114772],[1469577600000, 25.074838],[1469664000000, 24.958411],[1469836800000, 25.471230],[1469923200000, 25.471230]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });