$(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: [[1291161600000,12.3176],[1291248000000,12.404],[1291334400000,12.3683],[1291420800000,12.4056],[1291507200000,12.4056],[1291593600000,12.4056],[1291680000000,12.4756],[1291766400000,12.5502],[1291852800000,12.5443],[1291939200000,12.5352],[1292025600000,12.5821],[1292112000000,12.5821],[1292198400000,12.5821],[1292284800000,12.5053],[1292371200000,12.6064],[1292457600000,12.4736],[1292544000000,12.4324],[1292630400000,12.3961],[1292716800000,12.3961],[1292803200000,12.3961],[1292889600000,12.3725],[1292976000000,12.3203],[1293062400000,12.296],[1293148800000,12.2654],[1293235200000,12.2749],[1293321600000,12.2749],[1293408000000,12.2749],[1293494400000,12.27],[1293580800000,12.3085],[1293667200000,12.2447],[1293753600000,12.2915]], 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: [[1291161600000, 12.317570],[1291161600000, 12.317570],[1291248000000, 12.404012],[1291334400000, 12.368348],[1291420800000, 12.405629],[1291507200000, 12.405629],[1291593600000, 12.405629],[1291680000000, 12.475551],[1291766400000, 12.550204],[1291852800000, 12.544338],[1291939200000, 12.535171],[1292025600000, 12.582077],[1292112000000, 12.582077],[1292198400000, 12.582077],[1292284800000, 12.505337],[1292371200000, 12.606404],[1292457600000, 12.473563],[1292544000000, 12.432433],[1292630400000, 12.396080],[1292716800000, 12.396080],[1292803200000, 12.396080],[1292889600000, 12.372505],[1292976000000, 12.320339],[1293062400000, 12.295974],[1293148800000, 12.265405],[1293235200000, 12.274916],[1293321600000, 12.274916],[1293408000000, 12.274916],[1293494400000, 12.269976],[1293580800000, 12.308479],[1293667200000, 12.244678],[1293753600000, 12.291488]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });