$(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: [[1351728000000,12.8778],[1351814400000,12.9128],[1351900800000,12.8131],[1351987200000,12.8131],[1352073600000,12.8131],[1352160000000,12.7674],[1352246400000,12.7736],[1352332800000,12.7604],[1352419200000,12.78],[1352505600000,12.7266],[1352592000000,12.7266],[1352678400000,12.7266],[1352764800000,12.6921],[1352851200000,12.6904],[1352937600000,12.6737],[1353024000000,12.6586],[1353110400000,12.695],[1353196800000,12.695],[1353283200000,12.695],[1353369600000,12.7],[1353456000000,12.7238],[1353542400000,12.7349],[1353628800000,12.7589],[1353715200000,12.7369],[1353801600000,12.7369],[1353888000000,12.7369],[1353974400000,12.7935],[1354060800000,12.8199],[1354147200000,12.7701],[1354233600000,12.814]], 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: [[1351728000000, 12.877804],[1351728000000, 12.877804],[1351814400000, 12.912803],[1351900800000, 12.813130],[1351987200000, 12.813130],[1352073600000, 12.813130],[1352160000000, 12.767416],[1352246400000, 12.773631],[1352332800000, 12.760368],[1352419200000, 12.779970],[1352505600000, 12.726641],[1352592000000, 12.726641],[1352678400000, 12.726641],[1352764800000, 12.692127],[1352851200000, 12.690443],[1352937600000, 12.673675],[1353024000000, 12.658602],[1353110400000, 12.694970],[1353196800000, 12.694970],[1353283200000, 12.694970],[1353369600000, 12.700033],[1353456000000, 12.723835],[1353542400000, 12.734897],[1353628800000, 12.758914],[1353715200000, 12.736901],[1353801600000, 12.736901],[1353888000000, 12.736901],[1353974400000, 12.793537],[1354060800000, 12.819858],[1354147200000, 12.770058],[1354233600000, 12.813966]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });