$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1157068800000,5.72887],[1157155200000,5.73017],[1157241600000,5.73017],[1157328000000,5.73017],[1157414400000,5.73277],[1157500800000,5.73277],[1157587200000,5.73668],[1157673600000,5.73864],[1157760000000,5.73929],[1157846400000,5.73929],[1157932800000,5.73929],[1158019200000,5.73994],[1158105600000,5.7419],[1158192000000,5.7419],[1158278400000,5.74582],[1158364800000,5.74713],[1158451200000,5.74713],[1158537600000,5.74713],[1158624000000,5.74974],[1158710400000,5.75302],[1158796800000,5.75761],[1158883200000,5.76024],[1158969600000,5.76024],[1159056000000,5.76024],[1159142400000,5.76024],[1159228800000,5.76155],[1159315200000,5.76155],[1159401600000,5.76287],[1159488000000,5.76352],[1159574400000,5.76484]], 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: [[1157068800000, 5.728871],[1157068800000, 5.728871],[1157155200000, 5.730171],[1157241600000, 5.730171],[1157328000000, 5.730171],[1157414400000, 5.732773],[1157500800000, 5.732773],[1157587200000, 5.736681],[1157673600000, 5.738636],[1157760000000, 5.739289],[1157846400000, 5.739289],[1157932800000, 5.739289],[1158019200000, 5.739941],[1158105600000, 5.741899],[1158192000000, 5.741899],[1158278400000, 5.745819],[1158364800000, 5.747126],[1158451200000, 5.747126],[1158537600000, 5.747126],[1158624000000, 5.749744],[1158710400000, 5.753019],[1158796800000, 5.757610],[1158883200000, 5.760237],[1158969600000, 5.760237],[1159056000000, 5.760237],[1159142400000, 5.760237],[1159228800000, 5.761552],[1159315200000, 5.761552],[1159401600000, 5.762867],[1159488000000, 5.763524],[1159574400000, 5.764840]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });