$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1264982400000,12.8918],[1265068800000,12.7215],[1265155200000,12.7613],[1265241600000,12.7698],[1265328000000,12.6896],[1265414400000,12.5432],[1265500800000,12.5432],[1265587200000,12.5432],[1265673600000,12.4987],[1265760000000,12.5179],[1265846400000,12.5094],[1265932800000,12.5221],[1266019200000,12.4968],[1266105600000,12.4968],[1266192000000,12.4968],[1266278400000,12.5499],[1266364800000,12.5474],[1266451200000,12.6399],[1266537600000,12.4692],[1266624000000,12.3107],[1266710400000,12.3107],[1266796800000,12.3107],[1266883200000,12.3765],[1266969600000,12.3245],[1267056000000,12.3351],[1267142400000,12.2349],[1267228800000,12.1457],[1267315200000,12.1457]], 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: [[1264982400000, 12.891816],[1264982400000, 12.891816],[1265068800000, 12.721525],[1265155200000, 12.761268],[1265241600000, 12.769776],[1265328000000, 12.689568],[1265414400000, 12.543198],[1265500800000, 12.543198],[1265587200000, 12.543198],[1265673600000, 12.498710],[1265760000000, 12.517943],[1265846400000, 12.509366],[1265932800000, 12.522072],[1266019200000, 12.496828],[1266105600000, 12.496828],[1266192000000, 12.496828],[1266278400000, 12.549932],[1266364800000, 12.547359],[1266451200000, 12.639924],[1266537600000, 12.469202],[1266624000000, 12.310710],[1266710400000, 12.310710],[1266796800000, 12.310710],[1266883200000, 12.376472],[1266969600000, 12.324498],[1267056000000, 12.335103],[1267142400000, 12.234886],[1267228800000, 12.145659],[1267315200000, 12.145659]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });