$(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: [[1220227200000,8.87065],[1220313600000,8.73135],[1220400000000,8.66032],[1220486400000,8.61293],[1220572800000,8.64344],[1220659200000,8.5394],[1220745600000,8.5394],[1220832000000,8.5394],[1220918400000,8.54231],[1221004800000,8.54523],[1221091200000,8.52617],[1221177600000,8.51429],[1221264000000,8.57174],[1221350400000,8.57174],[1221436800000,8.57174],[1221523200000,8.64745],[1221609600000,8.67845],[1221696000000,8.67787],[1221782400000,8.85582],[1221868800000,8.7716],[1221955200000,8.7716],[1222041600000,8.7716],[1222128000000,8.92382],[1222214400000,8.99572],[1222300800000,9.01052],[1222387200000,9.02361],[1222473600000,8.95458],[1222560000000,8.95458],[1222646400000,8.95458],[1222732800000,8.76373]], 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: [[1220227200000, 8.870653],[1220227200000, 8.870653],[1220313600000, 8.731348],[1220400000000, 8.660318],[1220486400000, 8.612930],[1220572800000, 8.643437],[1220659200000, 8.539398],[1220745600000, 8.539398],[1220832000000, 8.539398],[1220918400000, 8.542311],[1221004800000, 8.545231],[1221091200000, 8.526167],[1221177600000, 8.514286],[1221264000000, 8.571745],[1221350400000, 8.571745],[1221436800000, 8.571745],[1221523200000, 8.647447],[1221609600000, 8.678451],[1221696000000, 8.677865],[1221782400000, 8.855822],[1221868800000, 8.771604],[1221955200000, 8.771604],[1222041600000, 8.771604],[1222128000000, 8.923818],[1222214400000, 8.995721],[1222300800000, 9.010522],[1222387200000, 9.023610],[1222473600000, 8.954577],[1222560000000, 8.954577],[1222646400000, 8.954577],[1222732800000, 8.763725]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });