$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1391212800000,0.00083],[1391299200000,0.00083],[1391385600000,0.00083],[1391472000000,0.00083],[1391558400000,0.00083],[1391644800000,0.00083],[1391731200000,0.0009],[1391817600000,0.00088],[1391904000000,0.00088],[1391990400000,0.00088],[1392076800000,0.00088],[1392163200000,0.00088],[1392249600000,0.00088],[1392336000000,0.00089],[1392422400000,0.00089],[1392508800000,0.00089],[1392595200000,0.00089],[1392681600000,0.00089],[1392768000000,0.00089],[1392854400000,0.0009],[1392940800000,0.00091],[1393027200000,0.00092],[1393113600000,0.00092],[1393200000000,0.00092],[1393286400000,0.00093],[1393372800000,0.00097],[1393459200000,0.00098],[1393545600000,0.00102]], 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.000830],[1391212800000, 0.000830],[1391299200000, 0.000830],[1391385600000, 0.000830],[1391472000000, 0.000830],[1391558400000, 0.000830],[1391644800000, 0.000830],[1391731200000, 0.000900],[1391817600000, 0.000880],[1391904000000, 0.000880],[1391990400000, 0.000880],[1392076800000, 0.000880],[1392163200000, 0.000880],[1392249600000, 0.000880],[1392336000000, 0.000890],[1392422400000, 0.000890],[1392508800000, 0.000890],[1392595200000, 0.000890],[1392681600000, 0.000890],[1392768000000, 0.000890],[1392854400000, 0.000900],[1392940800000, 0.000910],[1393027200000, 0.000920],[1393113600000, 0.000920],[1393200000000, 0.000920],[1393286400000, 0.000930],[1393372800000, 0.000970],[1393459200000, 0.000980],[1393545600000, 0.001020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });