$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1391212800000,8.8407],[1391299200000,8.8407],[1391385600000,8.8407],[1391472000000,8.8246],[1391558400000,8.84628],[1391644800000,8.85691],[1391731200000,9.61342],[1391817600000,9.45998],[1391904000000,9.45998],[1391990400000,9.45998],[1392076800000,9.53478],[1392163200000,9.55777],[1392249600000,9.47495],[1392336000000,9.66172],[1392422400000,9.69113],[1392508800000,9.69113],[1392595200000,9.69113],[1392681600000,9.69142],[1392768000000,9.76023],[1392854400000,9.88641],[1392940800000,9.92655],[1393027200000,10.0462],[1393113600000,10.0462],[1393200000000,10.0462],[1393286400000,10.1673],[1393372800000,10.6338],[1393459200000,10.7102],[1393545600000,11.214]], 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, 8.840703],[1391212800000, 8.840703],[1391299200000, 8.840703],[1391385600000, 8.840703],[1391472000000, 8.824596],[1391558400000, 8.846285],[1391644800000, 8.856914],[1391731200000, 9.613421],[1391817600000, 9.459981],[1391904000000, 9.459981],[1391990400000, 9.459981],[1392076800000, 9.534784],[1392163200000, 9.557775],[1392249600000, 9.474949],[1392336000000, 9.661719],[1392422400000, 9.691133],[1392508800000, 9.691133],[1392595200000, 9.691133],[1392681600000, 9.691418],[1392768000000, 9.760234],[1392854400000, 9.886407],[1392940800000, 9.926545],[1393027200000, 10.046180],[1393113600000, 10.046180],[1393200000000, 10.046180],[1393286400000, 10.167320],[1393372800000, 10.633772],[1393459200000, 10.710173],[1393545600000, 11.213955]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });