$(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: [[1162339200000,9.59084],[1162425600000,9.63765],[1162512000000,9.63583],[1162598400000,9.63487],[1162684800000,9.63487],[1162771200000,9.63487],[1162857600000,9.57675],[1162944000000,9.61743],[1163030400000,9.62321],[1163116800000,9.61032],[1163203200000,9.66283],[1163289600000,9.66283],[1163376000000,9.66283],[1163462400000,9.61726],[1163548800000,9.57935],[1163635200000,9.52235],[1163721600000,9.5355],[1163808000000,9.52017],[1163894400000,9.52017],[1163980800000,9.52017],[1164067200000,9.58142],[1164153600000,9.58961],[1164240000000,9.64207],[1164326400000,9.66928],[1164412800000,9.75682],[1164499200000,9.75682],[1164585600000,9.75682],[1164672000000,9.77213],[1164758400000,9.81772],[1164844800000,9.8536]], 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: [[1162339200000, 9.590845],[1162339200000, 9.590845],[1162425600000, 9.637647],[1162512000000, 9.635832],[1162598400000, 9.634868],[1162684800000, 9.634868],[1162771200000, 9.634868],[1162857600000, 9.576754],[1162944000000, 9.617432],[1163030400000, 9.623208],[1163116800000, 9.610321],[1163203200000, 9.662829],[1163289600000, 9.662829],[1163376000000, 9.662829],[1163462400000, 9.617263],[1163548800000, 9.579351],[1163635200000, 9.522347],[1163721600000, 9.535496],[1163808000000, 9.520174],[1163894400000, 9.520174],[1163980800000, 9.520174],[1164067200000, 9.581420],[1164153600000, 9.589612],[1164240000000, 9.642065],[1164326400000, 9.669276],[1164412800000, 9.756818],[1164499200000, 9.756818],[1164585600000, 9.756818],[1164672000000, 9.772126],[1164758400000, 9.817723],[1164844800000, 9.853604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });