$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1391212800000,12.2629],[1391299200000,12.2629],[1391385600000,12.2629],[1391472000000,12.2407],[1391558400000,12.2468],[1391644800000,12.2458],[1391731200000,13.3413],[1391817600000,13.08],[1391904000000,13.08],[1391990400000,13.08],[1392076800000,13.1459],[1392163200000,13.1564],[1392249600000,13.1343],[1392336000000,13.3019],[1392422400000,13.3419],[1392508800000,13.3419],[1392595200000,13.3419],[1392681600000,13.3501],[1392768000000,13.4113],[1392854400000,13.5745],[1392940800000,13.6364],[1393027200000,13.7905],[1393113600000,13.7905],[1393200000000,13.7905],[1393286400000,13.9532],[1393372800000,14.5642],[1393459200000,14.7028],[1393545600000,15.3925]], 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, 12.262870],[1391212800000, 12.262870],[1391299200000, 12.262870],[1391385600000, 12.262870],[1391472000000, 12.240654],[1391558400000, 12.246768],[1391644800000, 12.245848],[1391731200000, 13.341321],[1391817600000, 13.080041],[1391904000000, 13.080041],[1391990400000, 13.080041],[1392076800000, 13.145866],[1392163200000, 13.156421],[1392249600000, 13.134332],[1392336000000, 13.301883],[1392422400000, 13.341867],[1392508800000, 13.341867],[1392595200000, 13.341867],[1392681600000, 13.350051],[1392768000000, 13.411277],[1392854400000, 13.574543],[1392940800000, 13.636364],[1393027200000, 13.790486],[1393113600000, 13.790486],[1393200000000, 13.790486],[1393286400000, 13.953205],[1393372800000, 14.564250],[1393459200000, 14.702752],[1393545600000, 15.392500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });