某BarChart: showDataTips="true" dataTipFunction="dataTipFunForQualExpSummary"
tipFunction:
- /** 资格过期摘要图表的dataTipFunction. */
- protected function dataTipFunForQualExpSummary(hd:HitData):String {
- var curObj:Object = hd.item;
- var curSeries:BarSeries = BarSeries(hd.chartItem.element); // 获得当前的BarSeries
- return curObj.qual + "-" + curSeries.displayName + "\n" + uqStatistics.getUQAs(curSeries.xField, curObj.qualObj).length + RM.getString(BUNDLE_DASHBOARD, "label.piece");
- }
/** 资格过期摘要图表的dataTipFunction. */ protected function dataTipFunForQualExpSummary(hd:HitData):String { var curObj:Object = hd.item; var curSeries:BarSeries = BarSeries(hd.chartItem.element); // 获得当前的BarSeries return curObj.qual + "-" + curSeries.displayName + "\n" + uqStatistics.getUQAs(curSeries.xField, curObj.qualObj).length + RM.getString(BUNDLE_DASHBOARD, "label.piece"); }
效果: