$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1498867200000,1.13364],[1498953600000,1.13364],[1499040000000,1.13364],[1499126400000,1.13057],[1499212800000,1.13032],[1499299200000,1.13335],[1499385600000,1.13472],[1499472000000,1.13875],[1499558400000,1.13875],[1499644800000,1.13875],[1499731200000,1.13469],[1499817600000,1.13386],[1499904000000,1.13616],[1499990400000,1.13508],[1500076800000,1.13899],[1500163200000,1.13899],[1500249600000,1.13899],[1500336000000,1.1407],[1500422400000,1.14886],[1500508800000,1.14928],[1500595200000,1.14358],[1500681600000,1.1585],[1500768000000,1.1585],[1500854400000,1.1585],[1500940800000,1.15579],[1501027200000,1.16179],[1501113600000,1.15715],[1501200000000,1.16291],[1501286400000,1.16694],[1501372800000,1.16694],[1501459200000,1.16694]], 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, 1.133636],[1498867200000, 1.133636],[1498953600000, 1.133636],[1499040000000, 1.133636],[1499126400000, 1.130571],[1499212800000, 1.130320],[1499299200000, 1.133348],[1499385600000, 1.134725],[1499472000000, 1.138748],[1499558400000, 1.138748],[1499644800000, 1.138748],[1499731200000, 1.134693],[1499817600000, 1.133865],[1499904000000, 1.136160],[1499990400000, 1.135084],[1500076800000, 1.138990],[1500163200000, 1.138990],[1500249600000, 1.138990],[1500336000000, 1.140700],[1500422400000, 1.148861],[1500508800000, 1.149275],[1500595200000, 1.143575],[1500681600000, 1.158505],[1500768000000, 1.158505],[1500854400000, 1.158505],[1500940800000, 1.155787],[1501027200000, 1.161790],[1501113600000, 1.157152],[1501200000000, 1.162909],[1501286400000, 1.166938],[1501372800000, 1.166938],[1501459200000, 1.166938]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });