$(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: [[1498867200000,33.7733],[1498953600000,33.7733],[1499040000000,33.7733],[1499126400000,33.6961],[1499212800000,33.6399],[1499299200000,33.7272],[1499385600000,33.7105],[1499472000000,33.5609],[1499558400000,33.5609],[1499644800000,33.5609],[1499731200000,33.4803],[1499817600000,33.5391],[1499904000000,33.3597],[1499990400000,33.6092],[1500076800000,33.7556],[1500163200000,33.7556],[1500249600000,33.7556],[1500336000000,33.9136],[1500422400000,33.7489],[1500508800000,33.8152],[1500595200000,33.5656],[1500681600000,33.6356],[1500768000000,33.6356],[1500854400000,33.6356],[1500940800000,33.6633],[1501027200000,33.8069],[1501113600000,33.7612],[1501200000000,34.0398],[1501286400000,33.9367],[1501372800000,33.9367],[1501459200000,33.9367]], 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: [[1498867200000, 33.773289],[1498867200000, 33.773289],[1498953600000, 33.773289],[1499040000000, 33.773289],[1499126400000, 33.696062],[1499212800000, 33.639900],[1499299200000, 33.727217],[1499385600000, 33.710544],[1499472000000, 33.560946],[1499558400000, 33.560946],[1499644800000, 33.560946],[1499731200000, 33.480269],[1499817600000, 33.539118],[1499904000000, 33.359718],[1499990400000, 33.609241],[1500076800000, 33.755561],[1500163200000, 33.755561],[1500249600000, 33.755561],[1500336000000, 33.913594],[1500422400000, 33.748926],[1500508800000, 33.815182],[1500595200000, 33.565557],[1500681600000, 33.635559],[1500768000000, 33.635559],[1500854400000, 33.635559],[1500940800000, 33.663339],[1501027200000, 33.806865],[1501113600000, 33.761222],[1501200000000, 34.039840],[1501286400000, 33.936667],[1501372800000, 33.936667],[1501459200000, 33.936667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });