$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1480550400000,34.6002],[1480636800000,34.6969],[1480723200000,35.0959],[1480809600000,35.0959],[1480896000000,35.0959],[1480982400000,35.4761],[1481068800000,35.4863],[1481155200000,35.3143],[1481241600000,35.0772],[1481328000000,34.9363],[1481414400000,34.9363],[1481500800000,34.9363],[1481587200000,35.3521],[1481673600000,35.2951],[1481760000000,35.6181],[1481846400000,35.2342],[1481932800000,35.2983],[1482019200000,35.2983],[1482105600000,35.2983],[1482192000000,35.3817],[1482278400000,35.4019],[1482364800000,35.4029],[1482451200000,35.2276],[1482537600000,35.1894],[1482624000000,35.1894],[1482710400000,35.1894],[1482796800000,35.3218],[1482883200000,35.3218],[1482969600000,35.9709],[1483056000000,36.4381],[1483142400000,36.4381]], 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: [[1480550400000, 34.600241],[1480550400000, 34.600241],[1480636800000, 34.696867],[1480723200000, 35.095905],[1480809600000, 35.095905],[1480896000000, 35.095905],[1480982400000, 35.476106],[1481068800000, 35.486319],[1481155200000, 35.314345],[1481241600000, 35.077211],[1481328000000, 34.936268],[1481414400000, 34.936268],[1481500800000, 34.936268],[1481587200000, 35.352106],[1481673600000, 35.295067],[1481760000000, 35.618140],[1481846400000, 35.234227],[1481932800000, 35.298265],[1482019200000, 35.298265],[1482105600000, 35.298265],[1482192000000, 35.381669],[1482278400000, 35.401880],[1482364800000, 35.402905],[1482451200000, 35.227631],[1482537600000, 35.189387],[1482624000000, 35.189387],[1482710400000, 35.189387],[1482796800000, 35.321765],[1482883200000, 35.321765],[1482969600000, 35.970876],[1483056000000, 36.438125],[1483142400000, 36.438125]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });