$(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: [[1301616000000,12.7971],[1301702400000,12.7694],[1301788800000,12.7694],[1301875200000,12.7694],[1301961600000,12.8707],[1302048000000,12.9264],[1302134400000,12.9795],[1302220800000,12.9878],[1302307200000,13.02],[1302393600000,13.02],[1302480000000,13.02],[1302566400000,13.0092],[1302652800000,12.9763],[1302739200000,12.9803],[1302825600000,13.0012],[1302912000000,13.0263],[1302998400000,13.0263],[1303084800000,13.0263],[1303171200000,12.9641],[1303257600000,12.9751],[1303344000000,13.0391],[1303430400000,13.1814],[1303516800000,13.1814],[1303603200000,13.1814],[1303689600000,13.1814],[1303776000000,13.1814],[1303862400000,13.1241],[1303948800000,13.181],[1304035200000,13.2583],[1304121600000,13.274]], 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: [[1301616000000, 12.797071],[1301616000000, 12.797071],[1301702400000, 12.769411],[1301788800000, 12.769411],[1301875200000, 12.769411],[1301961600000, 12.870716],[1302048000000, 12.926384],[1302134400000, 12.979511],[1302220800000, 12.987762],[1302307200000, 13.019995],[1302393600000, 13.019995],[1302480000000, 13.019995],[1302566400000, 13.009222],[1302652800000, 12.976338],[1302739200000, 12.980340],[1302825600000, 13.001206],[1302912000000, 13.026255],[1302998400000, 13.026255],[1303084800000, 13.026255],[1303171200000, 12.964140],[1303257600000, 12.975074],[1303344000000, 13.039109],[1303430400000, 13.181368],[1303516800000, 13.181368],[1303603200000, 13.181368],[1303689600000, 13.181368],[1303776000000, 13.181368],[1303862400000, 13.124077],[1303948800000, 13.181012],[1304035200000, 13.258340],[1304121600000, 13.274011]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });