$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1088640000000,5.32],[1088726400000,5.3199],[1088812800000,5.3199],[1088899200000,5.3199],[1088985600000,5.3199],[1089072000000,5.3199],[1089158400000,5.3197],[1089244800000,5.3195],[1089331200000,5.3189],[1089417600000,5.3189],[1089504000000,5.3189],[1089590400000,5.3189],[1089676800000,5.3185],[1089763200000,5.3181],[1089849600000,5.3179],[1089936000000,5.3179],[1090022400000,5.3177],[1090108800000,5.3177],[1090195200000,5.3177],[1090281600000,5.317],[1090368000000,5.317],[1090454400000,5.3168],[1090540800000,5.3165],[1090627200000,5.3165],[1090713600000,5.3165],[1090800000000,5.3165],[1090886400000,5.3163],[1090972800000,5.3163],[1091059200000,5.316],[1091145600000,5.3154],[1091232000000,5.3154]], 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: [[1088640000000, 5.320000],[1088640000000, 5.320000],[1088726400000, 5.319900],[1088812800000, 5.319900],[1088899200000, 5.319900],[1088985600000, 5.319900],[1089072000000, 5.319900],[1089158400000, 5.319700],[1089244800000, 5.319500],[1089331200000, 5.318900],[1089417600000, 5.318900],[1089504000000, 5.318900],[1089590400000, 5.318900],[1089676800000, 5.318500],[1089763200000, 5.318100],[1089849600000, 5.317900],[1089936000000, 5.317900],[1090022400000, 5.317700],[1090108800000, 5.317700],[1090195200000, 5.317700],[1090281600000, 5.317000],[1090368000000, 5.317000],[1090454400000, 5.316800],[1090540800000, 5.316500],[1090627200000, 5.316500],[1090713600000, 5.316500],[1090800000000, 5.316500],[1090886400000, 5.316300],[1090972800000, 5.316300],[1091059200000, 5.316000],[1091145600000, 5.315400],[1091232000000, 5.315400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });