$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1391212800000,10.8033],[1391299200000,10.8033],[1391385600000,10.8033],[1391472000000,10.789],[1391558400000,10.8057],[1391644800000,10.8249],[1391731200000,11.7514],[1391817600000,11.5762],[1391904000000,11.5762],[1391990400000,11.5762],[1392076800000,11.6649],[1392163200000,11.6939],[1392249600000,11.6059],[1392336000000,11.8028],[1392422400000,11.8435],[1392508800000,11.8435],[1392595200000,11.8435],[1392681600000,11.8439],[1392768000000,11.928],[1392854400000,12.0753],[1392940800000,12.1134],[1393027200000,12.2513],[1393113600000,12.2513],[1393200000000,12.2513],[1393286400000,12.4133],[1393372800000,12.9658],[1393459200000,13.0643],[1393545600000,13.6373]], 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, 10.803339],[1391212800000, 10.803339],[1391299200000, 10.803339],[1391385600000, 10.803339],[1391472000000, 10.788951],[1391558400000, 10.805737],[1391644800000, 10.824920],[1391731200000, 11.751446],[1391817600000, 11.576179],[1391904000000, 11.576179],[1391990400000, 11.576179],[1392076800000, 11.664854],[1392163200000, 11.693937],[1392249600000, 11.605865],[1392336000000, 11.802756],[1392422400000, 11.843533],[1392508800000, 11.843533],[1392595200000, 11.843533],[1392681600000, 11.843881],[1392768000000, 11.927982],[1392854400000, 12.075257],[1392940800000, 12.113363],[1393027200000, 12.251317],[1393113600000, 12.251317],[1393200000000, 12.251317],[1393286400000, 12.413281],[1393372800000, 12.965758],[1393459200000, 13.064270],[1393545600000, 13.637291]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });