$(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: [[1280620800000,12.316],[1280707200000,12.316],[1280793600000,12.4909],[1280880000000,12.5735],[1280966400000,12.5797],[1281052800000,12.5448],[1281139200000,12.5239],[1281225600000,null],[1281312000000,12.5239],[1281398400000,12.5923],[1281484800000,12.4065],[1281571200000,12.4059],[1281657600000,12.2975],[1281744000000,12.2971],[1281830400000,12.2971],[1281916800000,12.2971],[1282003200000,12.3202],[1282089600000,12.3287],[1282176000000,12.3434],[1282262400000,12.3429],[1282348800000,12.2444],[1282435200000,null],[1282521600000,null],[1282608000000,12.2439],[1282694400000,12.2439],[1282780800000,12.1584],[1282867200000,12.2512],[1282953600000,12.2188],[1283040000000,12.2188],[1283126400000,12.2188],[1283212800000,12.2662]], 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: [[1280620800000, 12.315977],[1280620800000, 12.315977],[1280707200000, 12.315977],[1280793600000, 12.490887],[1280880000000, 12.573493],[1280966400000, 12.579656],[1281052800000, 12.544752],[1281139200000, 12.523946],[1281312000000, 12.523946],[1281398400000, 12.592265],[1281484800000, 12.406534],[1281571200000, 12.405924],[1281657600000, 12.297477],[1281744000000, 12.297140],[1281830400000, 12.297140],[1281916800000, 12.297140],[1282003200000, 12.320221],[1282089600000, 12.328724],[1282176000000, 12.343399],[1282262400000, 12.342927],[1282348800000, 12.244366],[1282608000000, 12.243901],[1282694400000, 12.243901],[1282780800000, 12.158408],[1282867200000, 12.251241],[1282953600000, 12.218795],[1283040000000, 12.218795],[1283126400000, 12.218795],[1283212800000, 12.266194]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });