$(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: [[1170288000000,0.0415958],[1170374400000,0.0419197],[1170460800000,0.0417122],[1170547200000,0.0417122],[1170633600000,0.0417122],[1170720000000,0.0418808],[1170806400000,0.0420563],[1170892800000,0.0418428],[1170979200000,0.0416061],[1171065600000,0.0415572],[1171152000000,0.0415572],[1171238400000,0.0415572],[1171324800000,0.0414257],[1171411200000,0.0416236],[1171497600000,0.0416677],[1171584000000,0.0420471],[1171670400000,0.0423952],[1171756800000,0.0423952],[1171843200000,0.0423952],[1171929600000,0.0422372],[1172016000000,0.0420114],[1172102400000,0.0417735],[1172188800000,0.041626],[1172275200000,0.0416233],[1172361600000,null],[1172448000000,0.0416233],[1172534400000,0.0418765],[1172620800000,0.0423716]], 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: [[1170288000000, 0.041596],[1170288000000, 0.041596],[1170374400000, 0.041920],[1170460800000, 0.041712],[1170547200000, 0.041712],[1170633600000, 0.041712],[1170720000000, 0.041881],[1170806400000, 0.042056],[1170892800000, 0.041843],[1170979200000, 0.041606],[1171065600000, 0.041557],[1171152000000, 0.041557],[1171238400000, 0.041557],[1171324800000, 0.041426],[1171411200000, 0.041624],[1171497600000, 0.041668],[1171584000000, 0.042047],[1171670400000, 0.042395],[1171756800000, 0.042395],[1171843200000, 0.042395],[1171929600000, 0.042237],[1172016000000, 0.042011],[1172102400000, 0.041773],[1172188800000, 0.041626],[1172275200000, 0.041623],[1172448000000, 0.041623],[1172534400000, 0.041876],[1172620800000, 0.042372]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });