$(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: [[1480550400000,0.087257],[1480636800000,0.086781],[1480723200000,0.087795],[1480809600000,0.087795],[1480896000000,0.087795],[1480982400000,0.089058],[1481068800000,0.089358],[1481155200000,0.089206],[1481241600000,0.088251],[1481328000000,0.086901],[1481414400000,0.086901],[1481500800000,0.086901],[1481587200000,0.088309],[1481673600000,0.088134],[1481760000000,0.088925],[1481846400000,0.087494],[1481932800000,0.087975],[1482019200000,0.087975],[1482105600000,0.087975],[1482192000000,0.088232],[1482278400000,0.088218],[1482364800000,0.088765],[1482451200000,0.088496],[1482537600000,0.088602],[1482624000000,0.088602],[1482710400000,0.088602],[1482796800000,0.088935],[1482883200000,0.088935],[1482969600000,0.090514],[1483056000000,0.091659],[1483142400000,0.091659]], 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, 0.087257],[1480550400000, 0.087257],[1480636800000, 0.086781],[1480723200000, 0.087795],[1480809600000, 0.087795],[1480896000000, 0.087795],[1480982400000, 0.089058],[1481068800000, 0.089358],[1481155200000, 0.089206],[1481241600000, 0.088251],[1481328000000, 0.086901],[1481414400000, 0.086901],[1481500800000, 0.086901],[1481587200000, 0.088309],[1481673600000, 0.088134],[1481760000000, 0.088925],[1481846400000, 0.087494],[1481932800000, 0.087975],[1482019200000, 0.087975],[1482105600000, 0.087975],[1482192000000, 0.088232],[1482278400000, 0.088218],[1482364800000, 0.088765],[1482451200000, 0.088496],[1482537600000, 0.088602],[1482624000000, 0.088602],[1482710400000, 0.088602],[1482796800000, 0.088935],[1482883200000, 0.088935],[1482969600000, 0.090514],[1483056000000, 0.091659],[1483142400000, 0.091659]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });