$(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: [[1249084800000,0.0804329],[1249171200000,0.0804329],[1249257600000,0.0804329],[1249344000000,0.0809215],[1249430400000,0.0811119],[1249516800000,0.0805882],[1249603200000,0.0805624],[1249689600000,0.0807973],[1249776000000,0.0807973],[1249862400000,0.0807973],[1249948800000,0.0793402],[1250035200000,0.0800764],[1250121600000,0.0807743],[1250208000000,0.0805384],[1250294400000,0.0818714],[1250380800000,0.0818714],[1250467200000,0.0818714],[1250553600000,0.082623],[1250640000000,0.0823182],[1250726400000,0.0835541],[1250812800000,0.0837354],[1250899200000,0.0847904],[1250985600000,0.0847904],[1251072000000,0.0847904],[1251158400000,0.0847904],[1251244800000,0.0844623],[1251331200000,0.0848742],[1251417600000,0.0853133],[1251504000000,0.0851607],[1251590400000,0.0851607],[1251676800000,0.0851607]], 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: [[1249084800000, 0.080433],[1249084800000, 0.080433],[1249171200000, 0.080433],[1249257600000, 0.080433],[1249344000000, 0.080921],[1249430400000, 0.081112],[1249516800000, 0.080588],[1249603200000, 0.080562],[1249689600000, 0.080797],[1249776000000, 0.080797],[1249862400000, 0.080797],[1249948800000, 0.079340],[1250035200000, 0.080076],[1250121600000, 0.080774],[1250208000000, 0.080538],[1250294400000, 0.081871],[1250380800000, 0.081871],[1250467200000, 0.081871],[1250553600000, 0.082623],[1250640000000, 0.082318],[1250726400000, 0.083554],[1250812800000, 0.083735],[1250899200000, 0.084790],[1250985600000, 0.084790],[1251072000000, 0.084790],[1251158400000, 0.084790],[1251244800000, 0.084462],[1251331200000, 0.084874],[1251417600000, 0.085313],[1251504000000, 0.085161],[1251590400000, 0.085161],[1251676800000, 0.085161]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });