$(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: [[1356998400000,12.8982],[1357084800000,12.8982],[1357171200000,12.8982],[1357257600000,12.917],[1357344000000,12.8038],[1357430400000,12.8038],[1357516800000,12.8038],[1357603200000,12.8038],[1357689600000,12.8418],[1357776000000,12.8037],[1357862400000,12.8258],[1357948800000,12.8886],[1358035200000,12.8886],[1358121600000,12.8886],[1358208000000,12.829],[1358294400000,12.8302],[1358380800000,12.7844],[1358467200000,12.8103],[1358553600000,12.7208],[1358640000000,12.7208],[1358726400000,12.7208],[1358812800000,12.6926],[1358899200000,12.677],[1358985600000,12.6736],[1359072000000,12.6435],[1359158400000,12.6448],[1359244800000,12.6448],[1359331200000,12.6448],[1359417600000,12.5755],[1359504000000,12.5785],[1359590400000,12.6102]], 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: [[1356998400000, 12.898185],[1356998400000, 12.898185],[1357084800000, 12.898185],[1357171200000, 12.898185],[1357257600000, 12.916964],[1357344000000, 12.803757],[1357430400000, 12.803757],[1357516800000, 12.803757],[1357603200000, 12.803757],[1357689600000, 12.841792],[1357776000000, 12.803706],[1357862400000, 12.825772],[1357948800000, 12.888615],[1358035200000, 12.888615],[1358121600000, 12.888615],[1358208000000, 12.828996],[1358294400000, 12.830197],[1358380800000, 12.784371],[1358467200000, 12.810265],[1358553600000, 12.720823],[1358640000000, 12.720823],[1358726400000, 12.720823],[1358812800000, 12.692579],[1358899200000, 12.677042],[1358985600000, 12.673568],[1359072000000, 12.643507],[1359158400000, 12.644787],[1359244800000, 12.644787],[1359331200000, 12.644787],[1359417600000, 12.575529],[1359504000000, 12.578487],[1359590400000, 12.610184]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });