$(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: [[1217548800000,9.58703],[1217635200000,9.57766],[1217721600000,9.57766],[1217808000000,9.57766],[1217894400000,9.52679],[1217980800000,9.46292],[1218067200000,9.46697],[1218153600000,9.4577],[1218240000000,null],[1218326400000,null],[1218412800000,9.31431],[1218499200000,9.30508],[1218585600000,9.20684],[1218672000000,9.08967],[1218758400000,9.07953],[1218844800000,9.02331],[1218931200000,9.02331],[1219017600000,9.02331],[1219104000000,9.03603],[1219190400000,9.01579],[1219276800000,8.99812],[1219363200000,9.04184],[1219449600000,9.00358],[1219536000000,9.00358],[1219622400000,9.00358],[1219708800000,9.00358],[1219795200000,8.89445],[1219881600000,8.94791],[1219968000000,8.89472],[1220054400000,8.87065],[1220140800000,8.87065]], 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: [[1217548800000, 9.587028],[1217548800000, 9.587028],[1217635200000, 9.577659],[1217721600000, 9.577659],[1217808000000, 9.577659],[1217894400000, 9.526789],[1217980800000, 9.462921],[1218067200000, 9.466974],[1218153600000, 9.457699],[1218412800000, 9.314313],[1218499200000, 9.305078],[1218585600000, 9.206840],[1218672000000, 9.089667],[1218758400000, 9.079531],[1218844800000, 9.023305],[1218931200000, 9.023305],[1219017600000, 9.023305],[1219104000000, 9.036029],[1219190400000, 9.015792],[1219276800000, 8.998115],[1219363200000, 9.041841],[1219449600000, 9.003584],[1219536000000, 9.003584],[1219622400000, 9.003584],[1219708800000, 9.003584],[1219795200000, 8.894446],[1219881600000, 8.947912],[1219968000000, 8.894723],[1220054400000, 8.870653],[1220140800000, 8.870653]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });