$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1133395200000,8.71267],[1133481600000,8.72496],[1133568000000,8.71944],[1133654400000,8.71944],[1133740800000,8.71944],[1133827200000,8.77356],[1133913600000,8.76285],[1134000000000,8.73622],[1134086400000,8.80187],[1134172800000,8.8405],[1134259200000,8.8405],[1134345600000,8.8405],[1134432000000,8.93093],[1134518400000,8.93159],[1134604800000,8.94899],[1134691200000,8.95448],[1134777600000,8.93264],[1134864000000,8.93264],[1134950400000,8.93264],[1135036800000,9.01452],[1135123200000,8.90191],[1135209600000,8.83034],[1135296000000,8.76668],[1135382400000,8.76323],[1135468800000,8.76323],[1135555200000,8.76323],[1135641600000,8.76323],[1135728000000,8.76383],[1135814400000,8.76815],[1135900800000,8.6759]], 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: [[1133395200000, 8.712666],[1133395200000, 8.712666],[1133481600000, 8.724956],[1133568000000, 8.719441],[1133654400000, 8.719441],[1133740800000, 8.719441],[1133827200000, 8.773564],[1133913600000, 8.762853],[1134000000000, 8.736224],[1134086400000, 8.801867],[1134172800000, 8.840501],[1134259200000, 8.840501],[1134345600000, 8.840501],[1134432000000, 8.930928],[1134518400000, 8.931591],[1134604800000, 8.948990],[1134691200000, 8.954478],[1134777600000, 8.932637],[1134864000000, 8.932637],[1134950400000, 8.932637],[1135036800000, 9.014524],[1135123200000, 8.901909],[1135209600000, 8.830341],[1135296000000, 8.766681],[1135382400000, 8.763235],[1135468800000, 8.763235],[1135555200000, 8.763235],[1135641600000, 8.763235],[1135728000000, 8.763833],[1135814400000, 8.768148],[1135900800000, 8.675904]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });