$(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: [[1267401600000,12.1457],[1267488000000,11.9185],[1267574400000,11.9359],[1267660800000,12.0249],[1267747200000,12.0583],[1267833600000,12.0151],[1267920000000,12.0151],[1268006400000,12.0151],[1268092800000,12.0151],[1268179200000,11.9416],[1268265600000,11.9202],[1268352000000,11.9952],[1268438400000,12.0904],[1268524800000,12.0904],[1268611200000,12.0904],[1268697600000,12.0067],[1268784000000,12.0702],[1268870400000,12.2426],[1268956800000,12.187],[1269043200000,12.0564],[1269129600000,12.0564],[1269216000000,12.0564],[1269302400000,11.9192],[1269388800000,11.9353],[1269475200000,11.8307],[1269561600000,11.8433],[1269648000000,11.7602],[1269734400000,11.7602],[1269820800000,11.7602],[1269907200000,11.8699],[1269993600000,11.9607]], 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: [[1267401600000, 12.145659],[1267401600000, 12.145659],[1267488000000, 11.918468],[1267574400000, 11.935872],[1267660800000, 12.024925],[1267747200000, 12.058348],[1267833600000, 12.015066],[1267920000000, 12.015066],[1268006400000, 12.015066],[1268092800000, 12.015066],[1268179200000, 11.941647],[1268265600000, 11.920174],[1268352000000, 11.995193],[1268438400000, 12.090407],[1268524800000, 12.090407],[1268611200000, 12.090407],[1268697600000, 12.006664],[1268784000000, 12.070157],[1268870400000, 12.242564],[1268956800000, 12.187043],[1269043200000, 12.056433],[1269129600000, 12.056433],[1269216000000, 12.056433],[1269302400000, 11.919213],[1269388800000, 11.935303],[1269475200000, 11.830654],[1269561600000, 11.843296],[1269648000000, 11.760250],[1269734400000, 11.760250],[1269820800000, 11.760250],[1269907200000, 11.869877],[1269993600000, 11.960691]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });