$(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: [[1328054400000,8.01525],[1328140800000,7.9982],[1328227200000,7.98787],[1328313600000,7.97213],[1328400000000,7.97213],[1328486400000,7.97213],[1328572800000,8.00381],[1328659200000,8.00496],[1328745600000,8.0353],[1328832000000,8.03161],[1328918400000,7.96815],[1329004800000,7.96815],[1329091200000,7.96815],[1329177600000,8.00703],[1329264000000,7.99235],[1329350400000,8.01197],[1329436800000,7.96052],[1329523200000,8.02857],[1329609600000,8.02857],[1329696000000,8.02857],[1329782400000,8.05245],[1329868800000,8.01772],[1329955200000,7.99919],[1330041600000,8.0117],[1330128000000,7.99813],[1330214400000,7.99813],[1330300800000,7.99813],[1330387200000,7.96054],[1330473600000,8.02128]], 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: [[1328054400000, 8.015250],[1328054400000, 8.015250],[1328140800000, 7.998199],[1328227200000, 7.987870],[1328313600000, 7.972132],[1328400000000, 7.972132],[1328486400000, 7.972132],[1328572800000, 8.003815],[1328659200000, 8.004961],[1328745600000, 8.035301],[1328832000000, 8.031605],[1328918400000, 7.968151],[1329004800000, 7.968151],[1329091200000, 7.968151],[1329177600000, 8.007032],[1329264000000, 7.992348],[1329350400000, 8.011967],[1329436800000, 7.960519],[1329523200000, 8.028568],[1329609600000, 8.028568],[1329696000000, 8.028568],[1329782400000, 8.052449],[1329868800000, 8.017720],[1329955200000, 7.999193],[1330041600000, 8.011698],[1330128000000, 7.998130],[1330214400000, 7.998130],[1330300800000, 7.998130],[1330387200000, 7.960537],[1330473600000, 8.021280]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });