$(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: [[1519862400000,28.4204],[1519948800000,28.179],[1520035200000,28.38],[1520121600000,28.38],[1520208000000,28.38],[1520294400000,28.2202],[1520380800000,28.1281],[1520467200000,27.7571],[1520553600000,27.7571],[1520640000000,27.7571],[1520726400000,27.7571],[1520812800000,27.7571],[1520899200000,27.3028],[1520985600000,27.4411],[1521072000000,27.492],[1521158400000,27.7381],[1521244800000,27.7029],[1521331200000,27.7029],[1521417600000,27.7029],[1521504000000,27.7717],[1521590400000,27.5465],[1521676800000,27.5761],[1521763200000,27.7046],[1521849600000,27.7086],[1521936000000,27.7086],[1522022400000,27.7086],[1522108800000,27.8102],[1522195200000,27.6748],[1522281600000,27.7411],[1522368000000,27.7649],[1522454400000,27.5175]], 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: [[1519862400000, 28.420362],[1519862400000, 28.420362],[1519948800000, 28.179046],[1520035200000, 28.379956],[1520121600000, 28.379956],[1520208000000, 28.379956],[1520294400000, 28.220189],[1520380800000, 28.128067],[1520467200000, 27.757099],[1520553600000, 27.757099],[1520640000000, 27.757099],[1520726400000, 27.757099],[1520812800000, 27.757099],[1520899200000, 27.302849],[1520985600000, 27.441133],[1521072000000, 27.492045],[1521158400000, 27.738115],[1521244800000, 27.702909],[1521331200000, 27.702909],[1521417600000, 27.702909],[1521504000000, 27.771722],[1521590400000, 27.546500],[1521676800000, 27.576057],[1521763200000, 27.704562],[1521849600000, 27.708587],[1521936000000, 27.708587],[1522022400000, 27.708587],[1522108800000, 27.810187],[1522195200000, 27.674804],[1522281600000, 27.741062],[1522368000000, 27.764868],[1522454400000, 27.517541]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });