[英]DualChart with sap.viz.ui5.Combination
我的圖表有一個小問題。
如您所見,圖表在每個條上方顯示數字。
該代碼如下所示:
oDualChart = new sap.viz.ui5.Combination(
{
// id: "dualcombination",
width : "90%",
height : "550px",
// legendDirection: 'left',
// setplotArea : combination,
dataLabel : {visible : true,
positionPreference : true,
position : sap.viz.ui5.types.
Datalabel_position.outside
},
是否有sap.viz.ui5.Combination的方法,我可以用該方法隱藏不想顯示的數字?
請嘗試以下解決方案:
oVizFrame.setVizProperties({
plotArea: {
dataLabel: { renderer: function(oConfig){
if(oConfig.val === 0){
oConfig.text = "";
}
} }
}
});
這將隱藏所有值為0的標簽。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.