$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1291161600000,7.75426],[1291248000000,7.79243],[1291334400000,7.85875],[1291420800000,7.92823],[1291507200000,7.92823],[1291593600000,7.92823],[1291680000000,7.90759],[1291766400000,7.93834],[1291852800000,7.85559],[1291939200000,7.86804],[1292025600000,7.87756],[1292112000000,7.87756],[1292198400000,7.87756],[1292284800000,7.89833],[1292371200000,7.9066],[1292457600000,7.9157],[1292544000000,7.92816],[1292630400000,7.90508],[1292716800000,7.90508],[1292803200000,7.90508],[1292889600000,7.86243],[1292976000000,7.81207],[1293062400000,7.83797],[1293148800000,7.8381],[1293235200000,7.87909],[1293321600000,7.87909],[1293408000000,7.87909],[1293494400000,7.89857],[1293580800000,7.94544],[1293667200000,7.9481],[1293753600000,7.9647]], 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, 7.754256],[1291161600000, 7.754256],[1291248000000, 7.792430],[1291334400000, 7.858754],[1291420800000, 7.928234],[1291507200000, 7.928234],[1291593600000, 7.928234],[1291680000000, 7.907591],[1291766400000, 7.938337],[1291852800000, 7.855586],[1291939200000, 7.868040],[1292025600000, 7.877560],[1292112000000, 7.877560],[1292198400000, 7.877560],[1292284800000, 7.898329],[1292371200000, 7.906603],[1292457600000, 7.915701],[1292544000000, 7.928165],[1292630400000, 7.905076],[1292716800000, 7.905076],[1292803200000, 7.905076],[1292889600000, 7.862431],[1292976000000, 7.812069],[1293062400000, 7.837968],[1293148800000, 7.838105],[1293235200000, 7.879094],[1293321600000, 7.879094],[1293408000000, 7.879094],[1293494400000, 7.898566],[1293580800000, 7.945444],[1293667200000, 7.948104],[1293753600000, 7.964699]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });