$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1391212800000,10.1926],[1391299200000,10.1926],[1391385600000,10.1926],[1391472000000,10.1913],[1391558400000,10.1913],[1391644800000,10.1913],[1391731200000,11.1029],[1391817600000,10.8736],[1391904000000,10.8736],[1391990400000,10.8736],[1392076800000,10.9055],[1392163200000,10.9023],[1392249600000,10.9009],[1392336000000,11.0032],[1392422400000,11.0154],[1392508800000,11.0154],[1392595200000,11.0154],[1392681600000,11.0222],[1392768000000,11.0746],[1392854400000,11.1999],[1392940800000,11.2672],[1393027200000,11.3932],[1393113600000,11.3932],[1393200000000,11.3932],[1393286400000,11.5203],[1393372800000,12.0164],[1393459200000,12.1324],[1393545600000,12.7295]], 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.192553],[1391212800000, 10.192553],[1391299200000, 10.192553],[1391385600000, 10.192553],[1391472000000, 10.191253],[1391558400000, 10.191253],[1391644800000, 10.191253],[1391731200000, 11.102894],[1391817600000, 10.873645],[1391904000000, 10.873645],[1391990400000, 10.873645],[1392076800000, 10.905521],[1392163200000, 10.902333],[1392249600000, 10.900943],[1392336000000, 11.003187],[1392422400000, 11.015426],[1392508800000, 11.015426],[1392595200000, 11.015426],[1392681600000, 11.022183],[1392768000000, 11.074579],[1392854400000, 11.199898],[1392940800000, 11.267211],[1393027200000, 11.393244],[1393113600000, 11.393244],[1393200000000, 11.393244],[1393286400000, 11.520331],[1393372800000, 12.016444],[1393459200000, 12.132441],[1393545600000, 12.729509]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });