$(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: [[1380585600000,12.9114],[1380672000000,12.9823],[1380758400000,12.9511],[1380844800000,12.9446],[1380931200000,12.829],[1381017600000,12.829],[1381104000000,12.829],[1381190400000,12.8578],[1381276800000,12.8776],[1381363200000,12.7178],[1381449600000,12.7178],[1381536000000,12.7719],[1381622400000,12.7719],[1381708800000,12.7719],[1381795200000,12.7805],[1381881600000,12.7429],[1381968000000,12.8139],[1382054400000,12.8835],[1382140800000,12.9416],[1382227200000,12.9416],[1382313600000,12.9416],[1382400000000,12.9049],[1382486400000,12.8948],[1382572800000,12.9074],[1382659200000,12.9253],[1382745600000,12.9263],[1382832000000,12.9263],[1382918400000,12.9263],[1383004800000,12.9102],[1383091200000,12.8455],[1383177600000,12.8454]], 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: [[1380585600000, 12.911365],[1380585600000, 12.911365],[1380672000000, 12.982279],[1380758400000, 12.951132],[1380844800000, 12.944584],[1380931200000, 12.829006],[1381017600000, 12.829006],[1381104000000, 12.829006],[1381190400000, 12.857769],[1381276800000, 12.877585],[1381363200000, 12.717847],[1381449600000, 12.717847],[1381536000000, 12.771854],[1381622400000, 12.771854],[1381708800000, 12.771854],[1381795200000, 12.780508],[1381881600000, 12.742902],[1381968000000, 12.813935],[1382054400000, 12.883479],[1382140800000, 12.941633],[1382227200000, 12.941633],[1382313600000, 12.941633],[1382400000000, 12.904942],[1382486400000, 12.894795],[1382572800000, 12.907437],[1382659200000, 12.925309],[1382745600000, 12.926348],[1382832000000, 12.926348],[1382918400000, 12.926348],[1383004800000, 12.910184],[1383091200000, 12.845526],[1383177600000, 12.845393]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });