$(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: [[1175385600000,9.89348],[1175472000000,9.89348],[1175558400000,9.98348],[1175644800000,9.9775],[1175731200000,9.96491],[1175817600000,9.9358],[1175904000000,9.9358],[1175990400000,9.9358],[1176076800000,9.9358],[1176163200000,9.9358],[1176249600000,9.96638],[1176336000000,9.98245],[1176422400000,9.99094],[1176508800000,10.0362],[1176595200000,10.0362],[1176681600000,10.0362],[1176768000000,10.0547],[1176854400000,10.1172],[1176940800000,10.1231],[1177027200000,10.1112],[1177113600000,10.1149],[1177200000000,10.1149],[1177286400000,10.1149],[1177372800000,10.0978],[1177459200000,10.097],[1177545600000,10.1215],[1177632000000,10.0652],[1177718400000,10.0985],[1177804800000,10.0985],[1177891200000,10.0985]], 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: [[1175385600000, 9.893483],[1175385600000, 9.893483],[1175472000000, 9.893483],[1175558400000, 9.983479],[1175644800000, 9.977503],[1175731200000, 9.964915],[1175817600000, 9.935803],[1175904000000, 9.935803],[1175990400000, 9.935803],[1176076800000, 9.935803],[1176163200000, 9.935803],[1176249600000, 9.966382],[1176336000000, 9.982454],[1176422400000, 9.990943],[1176508800000, 10.036217],[1176595200000, 10.036217],[1176681600000, 10.036217],[1176768000000, 10.054735],[1176854400000, 10.117174],[1176940800000, 10.123114],[1177027200000, 10.111151],[1177113600000, 10.114868],[1177200000000, 10.114868],[1177286400000, 10.114868],[1177372800000, 10.097765],[1177459200000, 10.097026],[1177545600000, 10.121505],[1177632000000, 10.065206],[1177718400000, 10.098520],[1177804800000, 10.098520],[1177891200000, 10.098520]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });