$(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: [[1001894400000,7.82609],[1001980800000,7.88055],[1002067200000,7.89236],[1002153600000,7.86075],[1002240000000,7.8708],[1002326400000,7.8708],[1002412800000,7.8708],[1002499200000,7.8708],[1002585600000,7.84568],[1002672000000,7.8175],[1002758400000,7.72868],[1002844800000,7.68328],[1002931200000,7.68328],[1003017600000,7.68328],[1003104000000,7.68328],[1003190400000,7.67512],[1003276800000,7.67512],[1003363200000,7.66119],[1003449600000,7.64287],[1003536000000,7.64287],[1003622400000,7.64287],[1003708800000,7.57959],[1003795200000,7.57959],[1003881600000,7.57959],[1003968000000,7.54689],[1004054400000,7.56792],[1004140800000,7.56792],[1004227200000,7.56792],[1004313600000,7.56792],[1004400000000,7.67731],[1004486400000,7.70411]], 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: [[1001894400000, 7.826090],[1001894400000, 7.826090],[1001980800000, 7.880550],[1002067200000, 7.892360],[1002153600000, 7.860750],[1002240000000, 7.870800],[1002326400000, 7.870800],[1002412800000, 7.870800],[1002499200000, 7.870800],[1002585600000, 7.845680],[1002672000000, 7.817500],[1002758400000, 7.728680],[1002844800000, 7.683280],[1002931200000, 7.683280],[1003017600000, 7.683280],[1003104000000, 7.683280],[1003190400000, 7.675120],[1003276800000, 7.675120],[1003363200000, 7.661190],[1003449600000, 7.642870],[1003536000000, 7.642870],[1003622400000, 7.642870],[1003708800000, 7.579590],[1003795200000, 7.579590],[1003881600000, 7.579590],[1003968000000, 7.546890],[1004054400000, 7.567920],[1004140800000, 7.567920],[1004227200000, 7.567920],[1004313600000, 7.567920],[1004400000000, 7.677310],[1004486400000, 7.704110]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });