$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1380585600000,0.081913],[1380672000000,0.081702],[1380758400000,0.081987],[1380844800000,0.081814],[1380931200000,0.082291],[1381017600000,0.082291],[1381104000000,0.082291],[1381190400000,0.08252],[1381276800000,0.082244],[1381363200000,0.082117],[1381449600000,0.082117],[1381536000000,0.081296],[1381622400000,0.081296],[1381708800000,0.081296],[1381795200000,0.0814],[1381881600000,0.081157],[1381968000000,0.081266],[1382054400000,0.081712],[1382140800000,0.081789],[1382227200000,0.081789],[1382313600000,0.081789],[1382400000000,0.081419],[1382486400000,0.081249],[1382572800000,0.08206],[1382659200000,0.08215],[1382745600000,0.082087],[1382832000000,0.082087],[1382918400000,0.082087],[1383004800000,0.081824],[1383091200000,0.081589],[1383177600000,0.081374]], 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, 0.081913],[1380585600000, 0.081913],[1380672000000, 0.081702],[1380758400000, 0.081987],[1380844800000, 0.081814],[1380931200000, 0.082291],[1381017600000, 0.082291],[1381104000000, 0.082291],[1381190400000, 0.082520],[1381276800000, 0.082244],[1381363200000, 0.082117],[1381449600000, 0.082117],[1381536000000, 0.081296],[1381622400000, 0.081296],[1381708800000, 0.081296],[1381795200000, 0.081400],[1381881600000, 0.081157],[1381968000000, 0.081266],[1382054400000, 0.081712],[1382140800000, 0.081789],[1382227200000, 0.081789],[1382313600000, 0.081789],[1382400000000, 0.081419],[1382486400000, 0.081249],[1382572800000, 0.082060],[1382659200000, 0.082150],[1382745600000, 0.082087],[1382832000000, 0.082087],[1382918400000, 0.082087],[1383004800000, 0.081824],[1383091200000, 0.081589],[1383177600000, 0.081374]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });