$(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: [[1049155200000,5.3345],[1049241600000,5.3345],[1049328000000,5.3345],[1049414400000,5.3345],[1049500800000,5.3345],[1049587200000,5.3345],[1049673600000,5.3345],[1049760000000,5.3341],[1049846400000,5.334],[1049932800000,5.334],[1050019200000,5.334],[1050105600000,5.334],[1050192000000,5.334],[1050278400000,5.334],[1050364800000,5.334],[1050451200000,5.334],[1050537600000,5.334],[1050624000000,5.3339],[1050710400000,5.3339],[1050796800000,5.3339],[1050883200000,5.3339],[1050969600000,5.3339],[1051056000000,5.3339],[1051142400000,5.3338],[1051228800000,5.3338],[1051315200000,5.3338],[1051401600000,5.3338],[1051488000000,5.3338],[1051574400000,5.3338],[1051660800000,5.3336]], 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: [[1049155200000, 5.334500],[1049155200000, 5.334500],[1049241600000, 5.334500],[1049328000000, 5.334500],[1049414400000, 5.334500],[1049500800000, 5.334500],[1049587200000, 5.334500],[1049673600000, 5.334500],[1049760000000, 5.334100],[1049846400000, 5.334000],[1049932800000, 5.334000],[1050019200000, 5.334000],[1050105600000, 5.334000],[1050192000000, 5.334000],[1050278400000, 5.334000],[1050364800000, 5.334000],[1050451200000, 5.334000],[1050537600000, 5.334000],[1050624000000, 5.333900],[1050710400000, 5.333900],[1050796800000, 5.333900],[1050883200000, 5.333900],[1050969600000, 5.333900],[1051056000000, 5.333900],[1051142400000, 5.333800],[1051228800000, 5.333800],[1051315200000, 5.333800],[1051401600000, 5.333800],[1051488000000, 5.333800],[1051574400000, 5.333800],[1051660800000, 5.333600]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });