$(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: [[1196467200000,10.4322],[1196553600000,10.4322],[1196640000000,10.4322],[1196726400000,10.4212],[1196812800000,10.4129],[1196899200000,10.2901],[1196985600000,10.2293],[1197072000000,10.2718],[1197158400000,10.2718],[1197244800000,10.2718],[1197331200000,10.3302],[1197417600000,10.3483],[1197504000000,10.2986],[1197590400000,10.3078],[1197676800000,10.2376],[1197763200000,10.2376],[1197849600000,10.2376],[1197936000000,10.1842],[1198022400000,10.1841],[1198108800000,10.1246],[1198195200000,10.0433],[1198281600000,10.0358],[1198368000000,10.0358],[1198454400000,10.0358],[1198540800000,9.99999],[1198627200000,9.99999],[1198713600000,9.99999],[1198800000000,10.0577],[1198886400000,10.0973]], 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: [[1196467200000, 10.432167],[1196467200000, 10.432167],[1196553600000, 10.432167],[1196640000000, 10.432167],[1196726400000, 10.421176],[1196812800000, 10.412932],[1196899200000, 10.290144],[1196985600000, 10.229325],[1197072000000, 10.271793],[1197158400000, 10.271793],[1197244800000, 10.271793],[1197331200000, 10.330215],[1197417600000, 10.348268],[1197504000000, 10.298603],[1197590400000, 10.307799],[1197676800000, 10.237593],[1197763200000, 10.237593],[1197849600000, 10.237593],[1197936000000, 10.184202],[1198022400000, 10.184067],[1198108800000, 10.124634],[1198195200000, 10.043306],[1198281600000, 10.035793],[1198368000000, 10.035793],[1198454400000, 10.035793],[1198540800000, 9.999986],[1198627200000, 9.999986],[1198713600000, 9.999986],[1198800000000, 10.057735],[1198886400000, 10.097251]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });