$(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: [[1354320000000,10.1861],[1354406400000,10.1861],[1354492800000,10.1861],[1354579200000,10.1861],[1354665600000,10.1887],[1354752000000,10.1848],[1354838400000,10.1848],[1354924800000,10.1861],[1355011200000,10.1861],[1355097600000,10.1861],[1355184000000,10.1861],[1355270400000,10.1835],[1355356800000,10.1835],[1355443200000,10.1835],[1355529600000,10.1835],[1355616000000,10.1835],[1355702400000,10.1835],[1355788800000,10.1835],[1355875200000,10.1835],[1355961600000,10.1835],[1356048000000,10.1835],[1356134400000,10.1848],[1356220800000,10.1848],[1356307200000,10.1848],[1356393600000,10.1848],[1356480000000,10.1848],[1356566400000,10.1848],[1356652800000,10.1822],[1356739200000,10.1822],[1356825600000,10.1822],[1356912000000,10.1822]], 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: [[1354320000000, 10.186058],[1354320000000, 10.186058],[1354406400000, 10.186058],[1354492800000, 10.186058],[1354579200000, 10.186058],[1354665600000, 10.188655],[1354752000000, 10.184760],[1354838400000, 10.184760],[1354924800000, 10.186058],[1355011200000, 10.186058],[1355097600000, 10.186058],[1355184000000, 10.186058],[1355270400000, 10.183463],[1355356800000, 10.183463],[1355443200000, 10.183463],[1355529600000, 10.183463],[1355616000000, 10.183463],[1355702400000, 10.183463],[1355788800000, 10.183463],[1355875200000, 10.183463],[1355961600000, 10.183463],[1356048000000, 10.183463],[1356134400000, 10.184760],[1356220800000, 10.184760],[1356307200000, 10.184760],[1356393600000, 10.184760],[1356480000000, 10.184760],[1356566400000, 10.184760],[1356652800000, 10.182166],[1356739200000, 10.182166],[1356825600000, 10.182166],[1356912000000, 10.182166]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });