$(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: [[1483228800000,33.3208],[1483315200000,33.3208],[1483401600000,33.3208],[1483488000000,33.3208],[1483574400000,32.7963],[1483660800000,32.7963],[1483747200000,33.407],[1483833600000,33.407],[1483920000000,33.407],[1484006400000,33.407],[1484092800000,33.0439],[1484179200000,32.836],[1484265600000,33.5111],[1484352000000,null],[1484438400000,33.6937],[1484524800000,33.6937],[1484611200000,33.4459],[1484697600000,34.0128],[1484784000000,33.7629],[1484870400000,33.8228],[1484956800000,33.6763],[1485043200000,33.6763],[1485129600000,33.6763],[1485216000000,33.9959],[1485302400000,33.8956],[1485388800000,34.2577],[1485475200000,34.1989],[1485561600000,34.1012],[1485648000000,34.1012],[1485734400000,34.1012],[1485820800000,33.9407]], 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: [[1483228800000, 33.320755],[1483228800000, 33.320755],[1483315200000, 33.320755],[1483401600000, 33.320755],[1483488000000, 33.320755],[1483574400000, 32.796306],[1483660800000, 32.796306],[1483747200000, 33.407040],[1483833600000, 33.407040],[1483920000000, 33.407040],[1484006400000, 33.407040],[1484092800000, 33.043854],[1484179200000, 32.835968],[1484265600000, 33.511065],[1484438400000, 33.693709],[1484524800000, 33.693709],[1484611200000, 33.445928],[1484697600000, 34.012755],[1484784000000, 33.762884],[1484870400000, 33.822766],[1484956800000, 33.676275],[1485043200000, 33.676275],[1485129600000, 33.676275],[1485216000000, 33.995882],[1485302400000, 33.895597],[1485388800000, 34.257705],[1485475200000, 34.198928],[1485561600000, 34.101249],[1485648000000, 34.101249],[1485734400000, 34.101249],[1485820800000, 33.940702]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });