$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1157068800000,7.51705],[1157155200000,7.50497],[1157241600000,7.50497],[1157328000000,7.50497],[1157414400000,7.50497],[1157500800000,7.51745],[1157587200000,7.5034],[1157673600000,7.49249],[1157760000000,7.4735],[1157846400000,7.4735],[1157932800000,7.4735],[1158019200000,7.46744],[1158105600000,7.46894],[1158192000000,7.46274],[1158278400000,7.47376],[1158364800000,7.46619],[1158451200000,7.46619],[1158537600000,7.46619],[1158624000000,7.45384],[1158710400000,7.46057],[1158796800000,7.46586],[1158883200000,7.49083],[1158969600000,7.51338],[1159056000000,7.51338],[1159142400000,7.51338],[1159228800000,7.49867],[1159315200000,7.48235],[1159401600000,7.47501],[1159488000000,7.47228],[1159574400000,7.45569]], 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, 7.517051],[1157068800000, 7.517051],[1157155200000, 7.504975],[1157241600000, 7.504975],[1157328000000, 7.504975],[1157414400000, 7.504975],[1157500800000, 7.517454],[1157587200000, 7.503403],[1157673600000, 7.492493],[1157760000000, 7.473499],[1157846400000, 7.473499],[1157932800000, 7.473499],[1158019200000, 7.467443],[1158105600000, 7.468945],[1158192000000, 7.462742],[1158278400000, 7.473764],[1158364800000, 7.466195],[1158451200000, 7.466195],[1158537600000, 7.466195],[1158624000000, 7.453842],[1158710400000, 7.460570],[1158796800000, 7.465864],[1158883200000, 7.490826],[1158969600000, 7.513383],[1159056000000, 7.513383],[1159142400000, 7.513383],[1159228800000, 7.498667],[1159315200000, 7.482346],[1159401600000, 7.475014],[1159488000000, 7.472282],[1159574400000, 7.455690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });