$(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: [[1354320000000,12.8018],[1354406400000,12.8018],[1354492800000,12.8018],[1354579200000,12.8512],[1354665600000,12.8825],[1354752000000,12.8622],[1354838400000,12.8779],[1354924800000,12.7961],[1355011200000,12.7961],[1355097600000,12.7961],[1355184000000,12.848],[1355270400000,12.8627],[1355356800000,12.9036],[1355443200000,12.9035],[1355529600000,12.8843],[1355616000000,12.8843],[1355702400000,12.8843],[1355788800000,12.9542],[1355875200000,12.9591],[1355961600000,13.0282],[1356048000000,12.9972],[1356134400000,12.9673],[1356220800000,12.9673],[1356307200000,12.9673],[1356393600000,12.9237],[1356480000000,12.9237],[1356566400000,12.9237],[1356652800000,12.9327],[1356739200000,12.8982],[1356825600000,12.8982],[1356912000000,12.8982]], 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: [[1354320000000, 12.801813],[1354320000000, 12.801813],[1354406400000, 12.801813],[1354492800000, 12.801813],[1354579200000, 12.851201],[1354665600000, 12.882476],[1354752000000, 12.862242],[1354838400000, 12.877857],[1354924800000, 12.796138],[1355011200000, 12.796138],[1355097600000, 12.796138],[1355184000000, 12.848022],[1355270400000, 12.862652],[1355356800000, 12.903587],[1355443200000, 12.903458],[1355529600000, 12.884342],[1355616000000, 12.884342],[1355702400000, 12.884342],[1355788800000, 12.954172],[1355875200000, 12.959123],[1355961600000, 13.028169],[1356048000000, 12.997211],[1356134400000, 12.967273],[1356220800000, 12.967273],[1356307200000, 12.967273],[1356393600000, 12.923728],[1356480000000, 12.923728],[1356566400000, 12.923728],[1356652800000, 12.932692],[1356739200000, 12.898185],[1356825600000, 12.898185],[1356912000000, 12.898185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });