$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1493596800000,3.01409],[1493683200000,3.01409],[1493769600000,3.01409],[1493856000000,3.00821],[1493942400000,3.001],[1494028800000,2.99973],[1494115200000,2.99973],[1494201600000,2.99973],[1494288000000,2.99973],[1494374400000,2.99973],[1494460800000,2.96827],[1494547200000,2.97496],[1494633600000,2.97844],[1494720000000,2.97844],[1494806400000,2.97844],[1494892800000,3.0026],[1494979200000,3.00701],[1495065600000,3.00988],[1495152000000,3.00786],[1495238400000,3.01131],[1495324800000,3.01131],[1495411200000,3.01131],[1495497600000,3.0253],[1495584000000,3.02871],[1495670400000,3.01789],[1495756800000,3.02921],[1495843200000,3.03226],[1495929600000,3.03226],[1496016000000,3.03226],[1496102400000,3.03581],[1496188800000,3.01408]], 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: [[1493596800000, 3.014088],[1493596800000, 3.014088],[1493683200000, 3.014088],[1493769600000, 3.014088],[1493856000000, 3.008209],[1493942400000, 3.000996],[1494028800000, 2.999730],[1494115200000, 2.999730],[1494201600000, 2.999730],[1494288000000, 2.999730],[1494374400000, 2.999730],[1494460800000, 2.968272],[1494547200000, 2.974960],[1494633600000, 2.978439],[1494720000000, 2.978439],[1494806400000, 2.978439],[1494892800000, 3.002597],[1494979200000, 3.007015],[1495065600000, 3.009877],[1495152000000, 3.007860],[1495238400000, 3.011313],[1495324800000, 3.011313],[1495411200000, 3.011313],[1495497600000, 3.025304],[1495584000000, 3.028706],[1495670400000, 3.017888],[1495756800000, 3.029212],[1495843200000, 3.032256],[1495929600000, 3.032256],[1496016000000, 3.032256],[1496102400000, 3.035811],[1496188800000, 3.014081]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });