$(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: [[1228089600000,0.84936],[1228176000000,0.869274],[1228262400000,0.872518],[1228348800000,0.891307],[1228435200000,0.882124],[1228521600000,0.881119],[1228608000000,0.881119],[1228694400000,0.881119],[1228780800000,0.913159],[1228867200000,0.907909],[1228953600000,0.914217],[1229040000000,0.935142],[1229126400000,0.93497],[1229212800000,0.93497],[1229299200000,0.93497],[1229385600000,0.951706],[1229472000000,0.95923],[1229558400000,1.00451],[1229644800000,1.04238],[1229731200000,1.01147],[1229817600000,1.01147],[1229904000000,1.01147],[1229990400000,1.01599],[1230076800000,0.993917],[1230163200000,0.971452],[1230249600000,0.971452],[1230336000000,0.960229],[1230422400000,0.960229],[1230508800000,0.960229],[1230595200000,1.00076],[1230681600000,0.991366]], 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: [[1228089600000, 0.849360],[1228089600000, 0.849360],[1228176000000, 0.869274],[1228262400000, 0.872518],[1228348800000, 0.891307],[1228435200000, 0.882124],[1228521600000, 0.881119],[1228608000000, 0.881119],[1228694400000, 0.881119],[1228780800000, 0.913159],[1228867200000, 0.907909],[1228953600000, 0.914217],[1229040000000, 0.935142],[1229126400000, 0.934970],[1229212800000, 0.934970],[1229299200000, 0.934970],[1229385600000, 0.951706],[1229472000000, 0.959230],[1229558400000, 1.004508],[1229644800000, 1.042376],[1229731200000, 1.011470],[1229817600000, 1.011470],[1229904000000, 1.011470],[1229990400000, 1.015986],[1230076800000, 0.993917],[1230163200000, 0.971452],[1230249600000, 0.971452],[1230336000000, 0.960229],[1230422400000, 0.960229],[1230508800000, 0.960229],[1230595200000, 1.000765],[1230681600000, 0.991366]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });