$(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: [[1338508800000,0.101506],[1338595200000,0.102321],[1338681600000,0.102321],[1338768000000,0.102321],[1338854400000,0.102321],[1338940800000,0.102148],[1339027200000,0.100978],[1339113600000,0.100585],[1339200000000,0.100759],[1339286400000,0.100759],[1339372800000,0.100759],[1339459200000,0.100661],[1339545600000,0.100445],[1339632000000,0.102148],[1339718400000,0.100808],[1339804800000,0.101445],[1339891200000,0.101445],[1339977600000,0.101445],[1340064000000,0.101102],[1340150400000,0.101293],[1340236800000,0.101294],[1340323200000,0.099808],[1340409600000,0.099541],[1340496000000,0.099541],[1340582400000,0.099541],[1340668800000,0.100241],[1340755200000,0.100744],[1340841600000,0.100242],[1340928000000,0.100242],[1341014400000,0.100242]], 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: [[1338508800000, 0.101506],[1338508800000, 0.101506],[1338595200000, 0.102321],[1338681600000, 0.102321],[1338768000000, 0.102321],[1338854400000, 0.102321],[1338940800000, 0.102148],[1339027200000, 0.100978],[1339113600000, 0.100585],[1339200000000, 0.100759],[1339286400000, 0.100759],[1339372800000, 0.100759],[1339459200000, 0.100661],[1339545600000, 0.100445],[1339632000000, 0.102148],[1339718400000, 0.100808],[1339804800000, 0.101445],[1339891200000, 0.101445],[1339977600000, 0.101445],[1340064000000, 0.101102],[1340150400000, 0.101293],[1340236800000, 0.101294],[1340323200000, 0.099808],[1340409600000, 0.099541],[1340496000000, 0.099541],[1340582400000, 0.099541],[1340668800000, 0.100241],[1340755200000, 0.100744],[1340841600000, 0.100242],[1340928000000, 0.100242],[1341014400000, 0.100242]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });