$(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: [[1372636800000,0.081423],[1372723200000,0.080164],[1372809600000,0.079985],[1372896000000,0.080389],[1372982400000,0.080053],[1373068800000,0.079843],[1373155200000,0.079843],[1373241600000,0.079843],[1373328000000,0.078983],[1373414400000,0.079008],[1373500800000,0.079737],[1373587200000,0.080429],[1373673600000,0.080293],[1373760000000,0.080293],[1373846400000,0.080293],[1373932800000,0.079588],[1374019200000,0.080439],[1374105600000,0.080058],[1374192000000,0.079753],[1374278400000,0.079663],[1374364800000,0.079663],[1374451200000,null],[1374537600000,0.080046],[1374624000000,0.079863],[1374710400000,0.079846],[1374796800000,0.080057],[1374883200000,0.081005],[1374969600000,0.081005],[1375056000000,0.081005],[1375142400000,0.081647],[1375228800000,0.081682]], 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: [[1372636800000, 0.081423],[1372636800000, 0.081423],[1372723200000, 0.080164],[1372809600000, 0.079985],[1372896000000, 0.080389],[1372982400000, 0.080053],[1373068800000, 0.079843],[1373155200000, 0.079843],[1373241600000, 0.079843],[1373328000000, 0.078983],[1373414400000, 0.079008],[1373500800000, 0.079737],[1373587200000, 0.080429],[1373673600000, 0.080293],[1373760000000, 0.080293],[1373846400000, 0.080293],[1373932800000, 0.079588],[1374019200000, 0.080439],[1374105600000, 0.080058],[1374192000000, 0.079753],[1374278400000, 0.079663],[1374364800000, 0.079663],[1374537600000, 0.080046],[1374624000000, 0.079863],[1374710400000, 0.079846],[1374796800000, 0.080057],[1374883200000, 0.081005],[1374969600000, 0.081005],[1375056000000, 0.081005],[1375142400000, 0.081647],[1375228800000, 0.081682]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });