$(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: [[1083369600000,9.44925],[1083456000000,9.44925],[1083542400000,9.44925],[1083628800000,9.44925],[1083715200000,9.44925],[1083801600000,9.54548],[1083888000000,9.57395],[1083974400000,9.57395],[1084060800000,9.57395],[1084147200000,9.57395],[1084233600000,9.35924],[1084320000000,9.43319],[1084406400000,9.43319],[1084492800000,9.33092],[1084579200000,9.33092],[1084665600000,9.33092],[1084752000000,9.33092],[1084838400000,9.42436],[1084924800000,9.48755],[1085011200000,9.43224],[1085097600000,9.54097],[1085184000000,9.54097],[1085270400000,9.54097],[1085356800000,9.54097],[1085443200000,9.53787],[1085529600000,9.67426],[1085616000000,9.67426],[1085702400000,9.7236],[1085788800000,9.7236],[1085875200000,9.7236],[1085961600000,9.7236]], 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: [[1083369600000, 9.449250],[1083369600000, 9.449250],[1083456000000, 9.449250],[1083542400000, 9.449250],[1083628800000, 9.449250],[1083715200000, 9.449250],[1083801600000, 9.545480],[1083888000000, 9.573950],[1083974400000, 9.573950],[1084060800000, 9.573950],[1084147200000, 9.573950],[1084233600000, 9.359240],[1084320000000, 9.433190],[1084406400000, 9.433190],[1084492800000, 9.330920],[1084579200000, 9.330920],[1084665600000, 9.330920],[1084752000000, 9.330920],[1084838400000, 9.424360],[1084924800000, 9.487550],[1085011200000, 9.432240],[1085097600000, 9.540970],[1085184000000, 9.540970],[1085270400000, 9.540970],[1085356800000, 9.540970],[1085443200000, 9.537870],[1085529600000, 9.674260],[1085616000000, 9.674260],[1085702400000, 9.723600],[1085788800000, 9.723600],[1085875200000, 9.723600],[1085961600000, 9.723600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });