$(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: [[1391212800000,1.22059],[1391299200000,1.22059],[1391385600000,1.22059],[1391472000000,1.2216],[1391558400000,1.22471],[1391644800000,1.22606],[1391731200000,1.33717],[1391817600000,1.30664],[1391904000000,1.30664],[1391990400000,1.30664],[1392076800000,1.3187],[1392163200000,1.32584],[1392249600000,1.32309],[1392336000000,1.33961],[1392422400000,1.33846],[1392508800000,1.33846],[1392595200000,1.33846],[1392681600000,1.34154],[1392768000000,1.33692],[1392854400000,1.35097],[1392940800000,1.35185],[1393027200000,1.36197],[1393113600000,1.36197],[1393200000000,1.36197],[1393286400000,1.38895],[1393372800000,1.45172],[1393459200000,1.46318],[1393545600000,1.52912]], 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: [[1391212800000, 1.220592],[1391212800000, 1.220592],[1391299200000, 1.220592],[1391385600000, 1.220592],[1391472000000, 1.221603],[1391558400000, 1.224710],[1391644800000, 1.226064],[1391731200000, 1.337169],[1391817600000, 1.306640],[1391904000000, 1.306640],[1391990400000, 1.306640],[1392076800000, 1.318703],[1392163200000, 1.325843],[1392249600000, 1.323088],[1392336000000, 1.339609],[1392422400000, 1.338464],[1392508800000, 1.338464],[1392595200000, 1.338464],[1392681600000, 1.341536],[1392768000000, 1.336918],[1392854400000, 1.350972],[1392940800000, 1.351847],[1393027200000, 1.361969],[1393113600000, 1.361969],[1393200000000, 1.361969],[1393286400000, 1.388945],[1393372800000, 1.451721],[1393459200000, 1.463177],[1393545600000, 1.529119]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });