$(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: [[1120262400000,4.10976],[1120348800000,4.10976],[1120435200000,4.10976],[1120521600000,4.06684],[1120608000000,4.07327],[1120694400000,4.06811],[1120780800000,4.09503],[1120867200000,4.11958],[1120953600000,4.11958],[1121040000000,4.11958],[1121126400000,4.16143],[1121212800000,4.17169],[1121299200000,4.19895],[1121385600000,4.19581],[1121472000000,4.16552],[1121558400000,4.16552],[1121644800000,4.16552],[1121731200000,4.14792],[1121817600000,4.13786],[1121904000000,4.15313],[1121990400000,4.16347],[1122076800000,4.14928],[1122163200000,4.14928],[1122249600000,4.14928],[1122336000000,4.14168],[1122422400000,4.12079],[1122508800000,4.07851],[1122595200000,4.09003],[1122681600000,4.11077],[1122768000000,4.11077]], 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: [[1120262400000, 4.109759],[1120262400000, 4.109759],[1120348800000, 4.109759],[1120435200000, 4.109759],[1120521600000, 4.066841],[1120608000000, 4.073274],[1120694400000, 4.068109],[1120780800000, 4.095029],[1120867200000, 4.119581],[1120953600000, 4.119581],[1121040000000, 4.119581],[1121126400000, 4.161432],[1121212800000, 4.171695],[1121299200000, 4.198945],[1121385600000, 4.195810],[1121472000000, 4.165519],[1121558400000, 4.165519],[1121644800000, 4.165519],[1121731200000, 4.147922],[1121817600000, 4.137858],[1121904000000, 4.153133],[1121990400000, 4.163466],[1122076800000, 4.149276],[1122163200000, 4.149276],[1122249600000, 4.149276],[1122336000000, 4.141680],[1122422400000, 4.120786],[1122508800000, 4.078506],[1122595200000, 4.090027],[1122681600000, 4.110773],[1122768000000, 4.110773]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });