$(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: [[1283299200000,7.4137],[1283385600000,7.44411],[1283472000000,7.52613],[1283558400000,7.48424],[1283644800000,7.48424],[1283731200000,7.48424],[1283817600000,7.64341],[1283904000000,7.58559],[1283990400000,7.54398],[1284076800000,7.65766],[1284163200000,7.67128],[1284249600000,7.67128],[1284336000000,7.67128],[1284422400000,7.67788],[1284508800000,7.70883],[1284595200000,7.71372],[1284681600000,7.71566],[1284768000000,7.71251],[1284854400000,7.71251],[1284940800000,7.71251],[1285027200000,7.6767],[1285113600000,7.67582],[1285200000000,7.7374],[1285286400000,7.64534],[1285372800000,7.68646],[1285459200000,7.68646],[1285545600000,7.68646],[1285632000000,7.73108],[1285718400000,7.66465],[1285804800000,7.70573]], 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: [[1283299200000, 7.413697],[1283299200000, 7.413697],[1283385600000, 7.444106],[1283472000000, 7.526132],[1283558400000, 7.484244],[1283644800000, 7.484244],[1283731200000, 7.484244],[1283817600000, 7.643406],[1283904000000, 7.585586],[1283990400000, 7.543983],[1284076800000, 7.657662],[1284163200000, 7.671280],[1284249600000, 7.671280],[1284336000000, 7.671280],[1284422400000, 7.677882],[1284508800000, 7.708832],[1284595200000, 7.713722],[1284681600000, 7.715660],[1284768000000, 7.712509],[1284854400000, 7.712509],[1284940800000, 7.712509],[1285027200000, 7.676698],[1285113600000, 7.675820],[1285200000000, 7.737402],[1285286400000, 7.645345],[1285372800000, 7.686463],[1285459200000, 7.686463],[1285545600000, 7.686463],[1285632000000, 7.731079],[1285718400000, 7.664655],[1285804800000, 7.705727]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });