如何解决在 Angular 2+ 的谷歌饼图中隐藏图例是否有任何替代解决方案?我已经使用了 Legend: 'none' 和 Legend: {position: 'none'}
let fitGapData = [
{
"team": "OTC","fit count": 0,"gap count": 1
},{
"team": "PTP","fit count": 1,"gap count": 11
}
]
let reqFitGap = new google.visualization.DataTable();
console.log('google',google.visualization)
reqFitGap.addColumn('string','Count type');
reqFitGap.addColumn('number','count');
reqFitGap.addRows([
['Fit',fitGapData[1]['fit count']],['Gap',fitGapData[1]['gap count']]
]);
let fitGapOptions = {
colors: ['#2D7CD1','#EF9101'],title: 'FIT/GAP CHART-'+fitGapData[1].team,legend: 'none',height: 400,width: 550
};
let reqFitGapChart = new google.visualization.PieChart(document.getElementById('chart_requirementByFitGap'));
reqFitGapChart.draw(reqFitGap,fitGapOptions);
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。