$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1480550400000,27.1815],[1480636800000,27.2457],[1480723200000,27.5614],[1480809600000,27.5614],[1480896000000,27.5614],[1480982400000,27.9616],[1481068800000,28.0129],[1481155200000,27.9196],[1481241600000,27.7364],[1481328000000,27.326],[1481414400000,27.326],[1481500800000,27.326],[1481587200000,27.7309],[1481673600000,27.7015],[1481760000000,28.0016],[1481846400000,27.4004],[1481932800000,27.4878],[1482019200000,27.4878],[1482105600000,27.4878],[1482192000000,27.5099],[1482278400000,27.434],[1482364800000,27.542],[1482451200000,27.4531],[1482537600000,27.4383],[1482624000000,27.4383],[1482710400000,27.4383],[1482796800000,27.5415],[1482883200000,27.5415],[1482969600000,27.9716],[1483056000000,28.4226],[1483142400000,28.4226]], 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, 27.181545],[1480550400000, 27.181545],[1480636800000, 27.245725],[1480723200000, 27.561441],[1480809600000, 27.561441],[1480896000000, 27.561441],[1480982400000, 27.961627],[1481068800000, 28.012932],[1481155200000, 27.919572],[1481241600000, 27.736354],[1481328000000, 27.326011],[1481414400000, 27.326011],[1481500800000, 27.326011],[1481587200000, 27.730928],[1481673600000, 27.701458],[1481760000000, 28.001614],[1481846400000, 27.400418],[1481932800000, 27.487803],[1482019200000, 27.487803],[1482105600000, 27.487803],[1482192000000, 27.509947],[1482278400000, 27.434007],[1482364800000, 27.542042],[1482451200000, 27.453112],[1482537600000, 27.438264],[1482624000000, 27.438264],[1482710400000, 27.438264],[1482796800000, 27.541483],[1482883200000, 27.541483],[1482969600000, 27.971574],[1483056000000, 28.422604],[1483142400000, 28.422604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });