$(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: [[1294272000000,7.95599],[1294358400000,8.00794],[1294444800000,8.00794],[1294531200000,8.00794],[1294617600000,8.00794],[1294704000000,7.99112],[1294790400000,8.02576],[1294876800000,8.07586],[1294963200000,8.04288],[1295049600000,7.97959],[1295136000000,7.97959],[1295222400000,7.97959],[1295308800000,8.0485],[1295395200000,8.05841],[1295481600000,8.01452],[1295568000000,7.94881],[1295654400000,7.96961],[1295740800000,7.96961],[1295827200000,7.96961],[1295913600000,7.98344],[1296000000000,7.93938],[1296086400000,7.9661],[1296172800000,7.96776],[1296259200000,7.97841],[1296345600000,7.97841],[1296432000000,7.97841]], 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: [[1294272000000, 7.955989],[1294272000000, 7.955989],[1294358400000, 8.007937],[1294444800000, 8.007937],[1294531200000, 8.007937],[1294617600000, 8.007937],[1294704000000, 7.991124],[1294790400000, 8.025763],[1294876800000, 8.075855],[1294963200000, 8.042875],[1295049600000, 7.979591],[1295136000000, 7.979591],[1295222400000, 7.979591],[1295308800000, 8.048500],[1295395200000, 8.058406],[1295481600000, 8.014522],[1295568000000, 7.948810],[1295654400000, 7.969614],[1295740800000, 7.969614],[1295827200000, 7.969614],[1295913600000, 7.983444],[1296000000000, 7.939384],[1296086400000, 7.966096],[1296172800000, 7.967759],[1296259200000, 7.978408],[1296345600000, 7.978408],[1296432000000, 7.978408]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });