FRA-OIS与Libor-OIS
图
微信
Loading...
FRA-OIS与Libor-OIS
更新频率:daily
var series1 = []; var series2 = []; $.each(data0, function(i, v){ series1.push({x: v.DT, y: v['CLOSE']}); }); $.each(data1, function(i, v){ series2.push({x: v.DT, y: v['CLOSE']*100}); }); Highcharts.stockChart('container', { chart: { type:'spline', zoomType: 'xy', }, xAxis: { ordinal: false }, yAxis: [{ visible: true, plotLines: [{color: '#C0C0C0', width: 2, value: 0}] },{ labels: {format: "{value}"}, visible: true, }, { visible: true, }], rangeSelector: { selected: 0, buttons: [{ type: 'year', count: 1, text: '1年' }, { type: 'year', count: 3, text: '3年' }, { type: 'year', count: 10, text: '10年' }, { type: 'all', text: '全部' }] }, legend:{ enabled: true, }, navigator:{ enabled: false, }, series: [{ data: series1, name: 'FRA-OIS', zIndex: 1, yAxis: 0, tooltip: { valueDecimals: 2, valueSuffix: 'bp' }, visible: true, color: '#1749AB' }, { data: series2, name: 'Libor-OIS(右轴)', zIndex: 1, yAxis: 2, tooltip: { valueDecimals: 2, valueSuffix: '' }, visible: true, color: '#C54322' }], });