$(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: [[978307200000,8.10255],[978393600000,8.10255],[978480000000,8.10915],[978566400000,8.18797],[978652800000,8.12512],[978739200000,8.16985],[978825600000,8.16985],[978912000000,8.16985],[978998400000,8.16985],[979084800000,8.09076],[979171200000,8.10793],[979257600000,8.14854],[979344000000,8.09329],[979430400000,8.09329],[979516800000,8.09329],[979603200000,8.01911],[979689600000,7.98176],[979776000000,8.01937],[979862400000,8.00187],[979948800000,8.00429],[980035200000,8.00429],[980121600000,8.00429],[980208000000,7.89795],[980294400000,7.99993],[980380800000,7.9608],[980467200000,7.88001],[980553600000,7.93681],[980640000000,7.93681],[980726400000,7.93681],[980812800000,7.91948],[980899200000,7.93033]], 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: [[978307200000, 8.102550],[978307200000, 8.102550],[978393600000, 8.102550],[978480000000, 8.109150],[978566400000, 8.187970],[978652800000, 8.125120],[978739200000, 8.169850],[978825600000, 8.169850],[978912000000, 8.169850],[978998400000, 8.169850],[979084800000, 8.090760],[979171200000, 8.107930],[979257600000, 8.148540],[979344000000, 8.093290],[979430400000, 8.093290],[979516800000, 8.093290],[979603200000, 8.019110],[979689600000, 7.981760],[979776000000, 8.019370],[979862400000, 8.001870],[979948800000, 8.004290],[980035200000, 8.004290],[980121600000, 8.004290],[980208000000, 7.897950],[980294400000, 7.999930],[980380800000, 7.960800],[980467200000, 7.880010],[980553600000, 7.936810],[980640000000, 7.936810],[980726400000, 7.936810],[980812800000, 7.919480],[980899200000, 7.930330]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });