$(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: [[991353600000,7.68765],[991440000000,7.67913],[991526400000,7.67913],[991612800000,7.67913],[991699200000,7.67913],[991785600000,7.64108],[991872000000,7.59832],[991958400000,7.48461],[992044800000,7.47804],[992131200000,7.47804],[992217600000,7.47804],[992304000000,7.48845],[992390400000,7.44946],[992476800000,7.44585],[992563200000,7.50432],[992649600000,7.60974],[992736000000,7.60974],[992822400000,7.60974],[992908800000,7.56625],[992995200000,7.5334],[993081600000,7.5115],[993168000000,7.60146],[993254400000,7.60937],[993340800000,7.60937],[993427200000,7.60937],[993513600000,7.61964],[993600000000,7.60935],[993686400000,7.61952],[993772800000,7.61952],[993859200000,7.61952]], 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: [[991353600000, 7.687650],[991353600000, 7.687650],[991440000000, 7.679130],[991526400000, 7.679130],[991612800000, 7.679130],[991699200000, 7.679130],[991785600000, 7.641080],[991872000000, 7.598320],[991958400000, 7.484610],[992044800000, 7.478040],[992131200000, 7.478040],[992217600000, 7.478040],[992304000000, 7.488450],[992390400000, 7.449460],[992476800000, 7.445850],[992563200000, 7.504320],[992649600000, 7.609740],[992736000000, 7.609740],[992822400000, 7.609740],[992908800000, 7.566250],[992995200000, 7.533400],[993081600000, 7.511500],[993168000000, 7.601460],[993254400000, 7.609370],[993340800000, 7.609370],[993427200000, 7.609370],[993513600000, 7.619640],[993600000000, 7.609350],[993686400000, 7.619520],[993772800000, 7.619520],[993859200000, 7.619520]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });