Google图表 - 角色:烛台栏中的注释

时间:2017-04-18 10:53:48

标签: javascript google-visualization candlestick-chart

我尝试将({type:'string',role:'annotation'})添加到烛台栏。但是注释并没有显示出来。有什么建议吗?

var data = new google.visualization.DataTable(); 

data.addColumn('string', 'label');
data.addColumn('number', '');  
data.addColumn('number', '');  
data.addColumn('number', '');  
data.addColumn('number', ''); 
data.addColumn({type:'string', role:'annotation'});  
data.addRows([
    ['Test1', 55,55,66,66,'test1'],
    ['Test1', 66,66,77,77,'test2'],
    ['Test1', 88,88,-99,-99,'test3'],
    ['Test1', -99,-99,66,66,'test4'],
]);   
var options = {
  ..
}

0 个答案:

没有答案