$(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: [[1417392000000,23.5879],[1417478400000,23.6325],[1417564800000,23.7615],[1417651200000,23.7735],[1417737600000,23.9917],[1417824000000,24.142],[1417910400000,24.142],[1417996800000,24.142],[1418083200000,24.3534],[1418169600000,24.3402],[1418256000000,24.4938],[1418342400000,24.5915],[1418428800000,24.6313],[1418515200000,24.6313],[1418601600000,24.6313],[1418688000000,24.7592],[1418774400000,24.6984],[1418860800000,24.8362],[1418947200000,null],[1419033600000,24.6315],[1419120000000,24.6315],[1419206400000,24.6315],[1419292800000,24.809],[1419379200000,24.4613],[1419465600000,24.4823],[1419552000000,24.5015],[1419638400000,24.4984],[1419724800000,24.4984],[1419811200000,24.4984],[1419897600000,24.5255],[1419984000000,24.5255]], 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: [[1417392000000, 23.587939],[1417392000000, 23.587939],[1417478400000, 23.632491],[1417564800000, 23.761480],[1417651200000, 23.773460],[1417737600000, 23.991742],[1417824000000, 24.141993],[1417910400000, 24.141993],[1417996800000, 24.141993],[1418083200000, 24.353360],[1418169600000, 24.340243],[1418256000000, 24.493796],[1418342400000, 24.591479],[1418428800000, 24.631335],[1418515200000, 24.631335],[1418601600000, 24.631335],[1418688000000, 24.759212],[1418774400000, 24.698405],[1418860800000, 24.836178],[1419033600000, 24.631495],[1419120000000, 24.631495],[1419206400000, 24.631495],[1419292800000, 24.808988],[1419379200000, 24.461325],[1419465600000, 24.482262],[1419552000000, 24.501495],[1419638400000, 24.498380],[1419724800000, 24.498380],[1419811200000, 24.498380],[1419897600000, 24.525514],[1419984000000, 24.525514]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });