$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1480550400000,1.26101],[1480636800000,1.26502],[1480723200000,1.27866],[1480809600000,1.27866],[1480896000000,1.27866],[1480982400000,1.29174],[1481068800000,1.29132],[1481155200000,1.28995],[1481241600000,1.28018],[1481328000000,1.28639],[1481414400000,1.28639],[1481500800000,1.28639],[1481587200000,1.30104],[1481673600000,1.29733],[1481760000000,1.30889],[1481846400000,1.3086],[1481932800000,1.30824],[1482019200000,1.30824],[1482105600000,1.30824],[1482192000000,1.30967],[1482278400000,1.31075],[1482364800000,1.30622],[1482451200000,1.29896],[1482537600000,1.30002],[1482624000000,1.30002],[1482710400000,1.30002],[1482796800000,1.30491],[1482883200000,1.30491],[1482969600000,1.34179],[1483056000000,1.36081],[1483142400000,1.36081]], 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, 1.261006],[1480550400000, 1.261006],[1480636800000, 1.265022],[1480723200000, 1.278660],[1480809600000, 1.278660],[1480896000000, 1.278660],[1480982400000, 1.291739],[1481068800000, 1.291323],[1481155200000, 1.289950],[1481241600000, 1.280182],[1481328000000, 1.286391],[1481414400000, 1.286391],[1481500800000, 1.286391],[1481587200000, 1.301036],[1481673600000, 1.297326],[1481760000000, 1.308885],[1481846400000, 1.308598],[1481932800000, 1.308239],[1482019200000, 1.308239],[1482105600000, 1.308239],[1482192000000, 1.309665],[1482278400000, 1.310751],[1482364800000, 1.306225],[1482451200000, 1.298960],[1482537600000, 1.300020],[1482624000000, 1.300020],[1482710400000, 1.300020],[1482796800000, 1.304910],[1482883200000, 1.304910],[1482969600000, 1.341793],[1483056000000, 1.360808],[1483142400000, 1.360808]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });