$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1391212800000,0.2272],[1391299200000,0.2272],[1391385600000,0.2272],[1391472000000,0.22685],[1391558400000,0.22547],[1391644800000,0.22864],[1391731200000,0.25074],[1391817600000,0.24645],[1391904000000,0.24645],[1391990400000,0.24645],[1392076800000,0.24604],[1392163200000,0.24574],[1392249600000,0.246],[1392336000000,0.24758],[1392422400000,0.24508],[1392508800000,0.24508],[1392595200000,0.24508],[1392681600000,0.24634],[1392768000000,0.24652],[1392854400000,0.24687],[1392940800000,0.2471],[1393027200000,0.25048],[1393113600000,0.25048],[1393200000000,0.25048],[1393286400000,0.2545],[1393372800000,0.26505],[1393459200000,0.26596],[1393545600000,0.27701]], 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, 0.227200],[1391212800000, 0.227200],[1391299200000, 0.227200],[1391385600000, 0.227200],[1391472000000, 0.226850],[1391558400000, 0.225470],[1391644800000, 0.228640],[1391731200000, 0.250740],[1391817600000, 0.246450],[1391904000000, 0.246450],[1391990400000, 0.246450],[1392076800000, 0.246040],[1392163200000, 0.245740],[1392249600000, 0.246000],[1392336000000, 0.247580],[1392422400000, 0.245080],[1392508800000, 0.245080],[1392595200000, 0.245080],[1392681600000, 0.246340],[1392768000000, 0.246520],[1392854400000, 0.246870],[1392940800000, 0.247100],[1393027200000, 0.250480],[1393113600000, 0.250480],[1393200000000, 0.250480],[1393286400000, 0.254500],[1393372800000, 0.265050],[1393459200000, 0.265960],[1393545600000, 0.277010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });