$(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: [[1488326400000,28.7854],[1488412800000,28.6294],[1488499200000,28.4838],[1488585600000,28.6515],[1488672000000,28.6515],[1488758400000,28.6515],[1488844800000,28.621],[1488931200000,28.5123],[1489017600000,28.5123],[1489104000000,28.3913],[1489190400000,28.4348],[1489276800000,28.4348],[1489363200000,28.4348],[1489449600000,28.6777],[1489536000000,28.602],[1489622400000,28.5528],[1489708800000,28.9377],[1489795200000,28.8925],[1489881600000,28.8925],[1489968000000,28.8925],[1490054400000,28.9098],[1490140800000,29.0045],[1490227200000,29.0923],[1490313600000,29.1844],[1490400000000,29.3081],[1490486400000,29.3081],[1490572800000,29.3081],[1490659200000,29.5675],[1490745600000,29.4503],[1490832000000,29.0627],[1490918400000,28.9642]], 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: [[1488326400000, 28.785388],[1488326400000, 28.785388],[1488412800000, 28.629367],[1488499200000, 28.483810],[1488585600000, 28.651487],[1488672000000, 28.651487],[1488758400000, 28.651487],[1488844800000, 28.620982],[1488931200000, 28.512332],[1489017600000, 28.512332],[1489104000000, 28.391298],[1489190400000, 28.434846],[1489276800000, 28.434846],[1489363200000, 28.434846],[1489449600000, 28.677678],[1489536000000, 28.601957],[1489622400000, 28.552752],[1489708800000, 28.937676],[1489795200000, 28.892477],[1489881600000, 28.892477],[1489968000000, 28.892477],[1490054400000, 28.909832],[1490140800000, 29.004515],[1490227200000, 29.092340],[1490313600000, 29.184423],[1490400000000, 29.308086],[1490486400000, 29.308086],[1490572800000, 29.308086],[1490659200000, 29.567497],[1490745600000, 29.450330],[1490832000000, 29.062707],[1490918400000, 28.964193]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });