$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1498867200000,0.096119],[1498953600000,0.096119],[1499040000000,0.096119],[1499126400000,0.095564],[1499212800000,0.095808],[1499299200000,0.096023],[1499385600000,0.095903],[1499472000000,0.096301],[1499558400000,0.096301],[1499644800000,0.096301],[1499731200000,0.096143],[1499817600000,0.096132],[1499904000000,0.096525],[1499990400000,0.09649],[1500076800000,0.096895],[1500163200000,0.096895],[1500249600000,0.096895],[1500336000000,0.097242],[1500422400000,0.097852],[1500508800000,0.097648],[1500595200000,0.097389],[1500681600000,0.098703],[1500768000000,0.098703],[1500854400000,0.098703],[1500940800000,0.098569],[1501027200000,0.098928],[1501113600000,0.098636],[1501200000000,0.099386],[1501286400000,0.099683],[1501372800000,0.099683],[1501459200000,0.099683]], 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, 0.096119],[1498867200000, 0.096119],[1498953600000, 0.096119],[1499040000000, 0.096119],[1499126400000, 0.095564],[1499212800000, 0.095808],[1499299200000, 0.096023],[1499385600000, 0.095903],[1499472000000, 0.096301],[1499558400000, 0.096301],[1499644800000, 0.096301],[1499731200000, 0.096143],[1499817600000, 0.096132],[1499904000000, 0.096525],[1499990400000, 0.096490],[1500076800000, 0.096895],[1500163200000, 0.096895],[1500249600000, 0.096895],[1500336000000, 0.097242],[1500422400000, 0.097852],[1500508800000, 0.097648],[1500595200000, 0.097389],[1500681600000, 0.098703],[1500768000000, 0.098703],[1500854400000, 0.098703],[1500940800000, 0.098569],[1501027200000, 0.098928],[1501113600000, 0.098636],[1501200000000, 0.099386],[1501286400000, 0.099683],[1501372800000, 0.099683],[1501459200000, 0.099683]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });