$(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: [[1064966400000,8.89278],[1065052800000,8.82985],[1065139200000,8.89835],[1065225600000,8.89835],[1065312000000,8.89835],[1065398400000,8.87995],[1065484800000,8.90513],[1065571200000,8.90513],[1065657600000,8.86803],[1065744000000,8.87116],[1065830400000,8.87116],[1065916800000,8.87116],[1066003200000,8.87116],[1066089600000,8.84677],[1066176000000,8.83571],[1066262400000,8.90002],[1066348800000,8.90077],[1066435200000,8.90077],[1066521600000,8.90077],[1066608000000,8.90077],[1066694400000,8.93615],[1066780800000,8.90685],[1066867200000,8.97157],[1066953600000,9.04075],[1067040000000,9.04075],[1067126400000,9.04075],[1067212800000,9.04075],[1067299200000,9.03232],[1067385600000,9.01496],[1067472000000,9.08398],[1067558400000,9.09193]], 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: [[1064966400000, 8.892780],[1064966400000, 8.892780],[1065052800000, 8.829850],[1065139200000, 8.898350],[1065225600000, 8.898350],[1065312000000, 8.898350],[1065398400000, 8.879950],[1065484800000, 8.905130],[1065571200000, 8.905130],[1065657600000, 8.868030],[1065744000000, 8.871160],[1065830400000, 8.871160],[1065916800000, 8.871160],[1066003200000, 8.871160],[1066089600000, 8.846770],[1066176000000, 8.835710],[1066262400000, 8.900020],[1066348800000, 8.900770],[1066435200000, 8.900770],[1066521600000, 8.900770],[1066608000000, 8.900770],[1066694400000, 8.936150],[1066780800000, 8.906850],[1066867200000, 8.971570],[1066953600000, 9.040750],[1067040000000, 9.040750],[1067126400000, 9.040750],[1067212800000, 9.040750],[1067299200000, 9.032320],[1067385600000, 9.014960],[1067472000000, 9.083980],[1067558400000, 9.091930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });