$(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: [[1272672000000,12.1261],[1272758400000,12.1261],[1272844800000,12.1261],[1272931200000,12.1261],[1273017600000,12.1261],[1273104000000,11.9792],[1273190400000,11.9667],[1273276800000,11.638],[1273363200000,11.638],[1273449600000,11.638],[1273536000000,11.638],[1273622400000,11.7081],[1273708800000,11.8375],[1273795200000,11.6956],[1273881600000,11.5518],[1273968000000,null],[1274054400000,11.5518],[1274140800000,11.4422],[1274227200000,11.4678],[1274313600000,11.3336],[1274400000000,11.3091],[1274486400000,11.3799],[1274572800000,11.3799],[1274659200000,11.3799],[1274745600000,11.3799],[1274832000000,11.3694],[1274918400000,11.4138],[1275004800000,11.4768],[1275091200000,11.5471],[1275177600000,11.5471],[1275264000000,11.5471]], 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: [[1272672000000, 12.126090],[1272672000000, 12.126090],[1272758400000, 12.126090],[1272844800000, 12.126090],[1272931200000, 12.126090],[1273017600000, 12.126090],[1273104000000, 11.979223],[1273190400000, 11.966656],[1273276800000, 11.637984],[1273363200000, 11.637984],[1273449600000, 11.637984],[1273536000000, 11.637984],[1273622400000, 11.708129],[1273708800000, 11.837529],[1273795200000, 11.695581],[1273881600000, 11.551784],[1274054400000, 11.551784],[1274140800000, 11.442242],[1274227200000, 11.467849],[1274313600000, 11.333645],[1274400000000, 11.309068],[1274486400000, 11.379902],[1274572800000, 11.379902],[1274659200000, 11.379902],[1274745600000, 11.379902],[1274832000000, 11.369449],[1274918400000, 11.413800],[1275004800000, 11.476762],[1275091200000, 11.547084],[1275177600000, 11.547084],[1275264000000, 11.547084]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });