$(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: [[1496275200000,3.02618],[1496361600000,3.01487],[1496448000000,3.0256],[1496534400000,3.0256],[1496620800000,3.0256],[1496707200000,3.0256],[1496793600000,3.03051],[1496880000000,3.00089],[1496966400000,2.99974],[1497052800000,2.99104],[1497139200000,2.99104],[1497225600000,2.99104],[1497312000000,2.99111],[1497398400000,2.9924],[1497484800000,2.99078],[1497571200000,2.98521],[1497657600000,2.98435],[1497744000000,2.98435],[1497830400000,2.98435],[1497916800000,2.9908],[1498003200000,2.97663],[1498089600000,2.96586],[1498176000000,2.97576],[1498262400000,2.97693],[1498348800000,2.97693],[1498435200000,2.97693],[1498521600000,2.98379],[1498608000000,3.01124],[1498694400000,3.01124],[1498780800000,3.06401]], 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: [[1496275200000, 3.026182],[1496275200000, 3.026182],[1496361600000, 3.014871],[1496448000000, 3.025600],[1496534400000, 3.025600],[1496620800000, 3.025600],[1496707200000, 3.025600],[1496793600000, 3.030512],[1496880000000, 3.000889],[1496966400000, 2.999740],[1497052800000, 2.991039],[1497139200000, 2.991039],[1497225600000, 2.991039],[1497312000000, 2.991108],[1497398400000, 2.992399],[1497484800000, 2.990782],[1497571200000, 2.985212],[1497657600000, 2.984354],[1497744000000, 2.984354],[1497830400000, 2.984354],[1497916800000, 2.990805],[1498003200000, 2.976635],[1498089600000, 2.965863],[1498176000000, 2.975758],[1498262400000, 2.976925],[1498348800000, 2.976925],[1498435200000, 2.976925],[1498521600000, 2.983789],[1498608000000, 3.011237],[1498694400000, 3.011237],[1498780800000, 3.064011]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });