$(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: [[1412121600000,16.4468],[1412208000000,16.3016],[1412294400000,16.3209],[1412380800000,16.3451],[1412467200000,16.3451],[1412553600000,16.3451],[1412640000000,16.3365],[1412726400000,16.2921],[1412812800000,16.3263],[1412899200000,16.351],[1412985600000,16.5281],[1413072000000,16.5281],[1413158400000,16.5281],[1413244800000,16.3699],[1413331200000,16.4212],[1413417600000,16.3791],[1413504000000,16.4043],[1413590400000,16.5115],[1413676800000,16.5115],[1413763200000,16.5115],[1413849600000,16.6073],[1413936000000,16.5418],[1414022400000,16.5269],[1414108800000,16.4381],[1414195200000,16.4068],[1414281600000,16.4068],[1414368000000,16.4068],[1414454400000,16.394],[1414540800000,16.4205],[1414627200000,16.5118],[1414713600000,16.498]], 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: [[1412121600000, 16.446760],[1412121600000, 16.446760],[1412208000000, 16.301551],[1412294400000, 16.320893],[1412380800000, 16.345140],[1412467200000, 16.345140],[1412553600000, 16.345140],[1412640000000, 16.336520],[1412726400000, 16.292150],[1412812800000, 16.326323],[1412899200000, 16.351018],[1412985600000, 16.528114],[1413072000000, 16.528114],[1413158400000, 16.528114],[1413244800000, 16.369852],[1413331200000, 16.421155],[1413417600000, 16.379147],[1413504000000, 16.404300],[1413590400000, 16.511510],[1413676800000, 16.511510],[1413763200000, 16.511510],[1413849600000, 16.607280],[1413936000000, 16.541778],[1414022400000, 16.526888],[1414108800000, 16.438054],[1414195200000, 16.406802],[1414281600000, 16.406802],[1414368000000, 16.406802],[1414454400000, 16.393962],[1414540800000, 16.420503],[1414627200000, 16.511824],[1414713600000, 16.497966]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });