$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1498867200000,29.6979],[1498953600000,29.6979],[1499040000000,29.6979],[1499126400000,29.5531],[1499212800000,29.5375],[1499299200000,29.5906],[1499385600000,29.6697],[1499472000000,29.6974],[1499558400000,29.6974],[1499644800000,29.6974],[1499731200000,29.611],[1499817600000,29.6211],[1499904000000,29.6651],[1499990400000,29.6484],[1500076800000,29.6992],[1500163200000,29.6992],[1500249600000,29.6992],[1500336000000,29.7609],[1500422400000,29.9623],[1500508800000,29.9214],[1500595200000,29.7787],[1500681600000,30.1408],[1500768000000,30.1408],[1500854400000,30.1408],[1500940800000,30.0782],[1501027200000,30.2216],[1501113600000,30.1403],[1501200000000,30.288],[1501286400000,30.3964],[1501372800000,30.3964],[1501459200000,30.3964]], 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, 29.697866],[1498867200000, 29.697866],[1498953600000, 29.697866],[1499040000000, 29.697866],[1499126400000, 29.553131],[1499212800000, 29.537514],[1499299200000, 29.590574],[1499385600000, 29.669661],[1499472000000, 29.697410],[1499558400000, 29.697410],[1499644800000, 29.697410],[1499731200000, 29.610954],[1499817600000, 29.621079],[1499904000000, 29.665130],[1499990400000, 29.648392],[1500076800000, 29.699155],[1500163200000, 29.699155],[1500249600000, 29.699155],[1500336000000, 29.760874],[1500422400000, 29.962296],[1500508800000, 29.921364],[1500595200000, 29.778690],[1500681600000, 30.140825],[1500768000000, 30.140825],[1500854400000, 30.140825],[1500940800000, 30.078194],[1501027200000, 30.221647],[1501113600000, 30.140331],[1501200000000, 30.287969],[1501286400000, 30.396394],[1501372800000, 30.396394],[1501459200000, 30.396394]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });