$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1480550400000,3.65329],[1480636800000,3.66201],[1480723200000,3.70459],[1480809600000,3.70459],[1480896000000,3.70459],[1480982400000,3.75848],[1481068800000,3.76599],[1481155200000,3.75374],[1481241600000,3.72851],[1481328000000,3.67438],[1481414400000,3.67438],[1481500800000,3.67438],[1481587200000,3.72873],[1481673600000,3.72482],[1481760000000,3.76573],[1481846400000,3.68533],[1481932800000,3.69758],[1482019200000,3.69758],[1482105600000,3.69758],[1482192000000,3.70041],[1482278400000,3.69019],[1482364800000,3.70478],[1482451200000,3.69281],[1482537600000,3.69082],[1482624000000,3.69082],[1482710400000,3.69082],[1482796800000,3.7047],[1482883200000,3.7047],[1482969600000,3.7621],[1483056000000,3.82343],[1483142400000,3.82343]], 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, 3.653286],[1480550400000, 3.653286],[1480636800000, 3.662011],[1480723200000, 3.704594],[1480809600000, 3.704594],[1480896000000, 3.704594],[1480982400000, 3.758485],[1481068800000, 3.765989],[1481155200000, 3.753741],[1481241600000, 3.728506],[1481328000000, 3.674382],[1481414400000, 3.674382],[1481500800000, 3.674382],[1481587200000, 3.728729],[1481673600000, 3.724816],[1481760000000, 3.765733],[1481846400000, 3.685329],[1481932800000, 3.697579],[1482019200000, 3.697579],[1482105600000, 3.697579],[1482192000000, 3.700408],[1482278400000, 3.690194],[1482364800000, 3.704776],[1482451200000, 3.692813],[1482537600000, 3.690816],[1482624000000, 3.690816],[1482710400000, 3.690816],[1482796800000, 3.704700],[1482883200000, 3.704700],[1482969600000, 3.762098],[1483056000000, 3.823429],[1483142400000, 3.823429]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });