$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1291161600000,0.0363073],[1291248000000,0.0371214],[1291334400000,0.0374711],[1291420800000,0.0378375],[1291507200000,0.0378375],[1291593600000,0.0378375],[1291680000000,0.0377272],[1291766400000,0.0382239],[1291852800000,0.0376398],[1291939200000,0.037878],[1292025600000,0.0378616],[1292112000000,0.0378616],[1292198400000,0.0378616],[1292284800000,0.0379082],[1292371200000,0.0385765],[1292457600000,0.0387383],[1292544000000,0.0385169],[1292630400000,0.0387153],[1292716800000,0.0387153],[1292803200000,0.0387153],[1292889600000,0.0380949],[1292976000000,0.0380116],[1293062400000,0.037805],[1293148800000,0.0373649],[1293235200000,0.0373523],[1293321600000,0.0373523],[1293408000000,0.0373523],[1293494400000,0.0375057],[1293580800000,0.0376309],[1293667200000,0.0374221],[1293753600000,0.0378966]], 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: [[1291161600000, 0.036307],[1291161600000, 0.036307],[1291248000000, 0.037121],[1291334400000, 0.037471],[1291420800000, 0.037838],[1291507200000, 0.037838],[1291593600000, 0.037838],[1291680000000, 0.037727],[1291766400000, 0.038224],[1291852800000, 0.037640],[1291939200000, 0.037878],[1292025600000, 0.037862],[1292112000000, 0.037862],[1292198400000, 0.037862],[1292284800000, 0.037908],[1292371200000, 0.038576],[1292457600000, 0.038738],[1292544000000, 0.038517],[1292630400000, 0.038715],[1292716800000, 0.038715],[1292803200000, 0.038715],[1292889600000, 0.038095],[1292976000000, 0.038012],[1293062400000, 0.037805],[1293148800000, 0.037365],[1293235200000, 0.037352],[1293321600000, 0.037352],[1293408000000, 0.037352],[1293494400000, 0.037506],[1293580800000, 0.037631],[1293667200000, 0.037422],[1293753600000, 0.037897]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });