$(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: [[1225497600000,0.0590924],[1225584000000,0.0590924],[1225670400000,0.0590924],[1225756800000,0.0587612],[1225843200000,0.0586499],[1225929600000,0.0588181],[1226016000000,0.059308],[1226102400000,0.0595095],[1226188800000,0.0595095],[1226275200000,0.0595095],[1226361600000,0.058265],[1226448000000,0.0590079],[1226534400000,0.059456],[1226620800000,0.0601781],[1226707200000,0.0600115],[1226793600000,0.0600115],[1226880000000,0.0600115],[1226966400000,0.0601581],[1227052800000,0.0610794],[1227139200000,0.0620326],[1227225600000,0.0627655],[1227312000000,0.0651934],[1227398400000,0.0651934],[1227484800000,0.0651934],[1227571200000,0.0656279],[1227657600000,0.0687972],[1227744000000,0.0708409],[1227830400000,0.0706837],[1227916800000,0.0720669],[1228003200000,0.0720669]], 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: [[1225497600000, 0.059092],[1225497600000, 0.059092],[1225584000000, 0.059092],[1225670400000, 0.059092],[1225756800000, 0.058761],[1225843200000, 0.058650],[1225929600000, 0.058818],[1226016000000, 0.059308],[1226102400000, 0.059509],[1226188800000, 0.059509],[1226275200000, 0.059509],[1226361600000, 0.058265],[1226448000000, 0.059008],[1226534400000, 0.059456],[1226620800000, 0.060178],[1226707200000, 0.060012],[1226793600000, 0.060012],[1226880000000, 0.060012],[1226966400000, 0.060158],[1227052800000, 0.061079],[1227139200000, 0.062033],[1227225600000, 0.062766],[1227312000000, 0.065193],[1227398400000, 0.065193],[1227484800000, 0.065193],[1227571200000, 0.065628],[1227657600000, 0.068797],[1227744000000, 0.070841],[1227830400000, 0.070684],[1227916800000, 0.072067],[1228003200000, 0.072067]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });