$(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: [[1157068800000,0.0431041],[1157155200000,0.0430644],[1157241600000,0.0430644],[1157328000000,0.0430644],[1157414400000,0.0434946],[1157500800000,0.0435714],[1157587200000,0.043292],[1157673600000,0.0434256],[1157760000000,0.0434052],[1157846400000,0.0434052],[1157932800000,0.0434052],[1158019200000,0.0430472],[1158105600000,0.0429329],[1158192000000,0.0428995],[1158278400000,0.0429544],[1158364800000,0.042933],[1158451200000,0.042933],[1158537600000,0.042933],[1158624000000,0.04279],[1158710400000,0.0429425],[1158796800000,0.043049],[1158883200000,0.0431951],[1158969600000,0.0434723],[1159056000000,0.0434723],[1159142400000,0.0434723],[1159228800000,0.0433381],[1159315200000,0.0433672],[1159401600000,0.0430183],[1159488000000,0.0429235],[1159574400000,0.0428104]], 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: [[1157068800000, 0.043104],[1157068800000, 0.043104],[1157155200000, 0.043064],[1157241600000, 0.043064],[1157328000000, 0.043064],[1157414400000, 0.043495],[1157500800000, 0.043571],[1157587200000, 0.043292],[1157673600000, 0.043426],[1157760000000, 0.043405],[1157846400000, 0.043405],[1157932800000, 0.043405],[1158019200000, 0.043047],[1158105600000, 0.042933],[1158192000000, 0.042900],[1158278400000, 0.042954],[1158364800000, 0.042933],[1158451200000, 0.042933],[1158537600000, 0.042933],[1158624000000, 0.042790],[1158710400000, 0.042943],[1158796800000, 0.043049],[1158883200000, 0.043195],[1158969600000, 0.043472],[1159056000000, 0.043472],[1159142400000, 0.043472],[1159228800000, 0.043338],[1159315200000, 0.043367],[1159401600000, 0.043018],[1159488000000, 0.042924],[1159574400000, 0.042810]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });