我正在使用pieGraph并根据点击饼图进行一些页面交互。这些工作得很好。
<dvt:pieGraph id="graph1" tabularData="#{dc.bean.tabularData}" dataSelection="single"
selectionListener="#{dc.bean.transfersGraphSelectionListener}"/>
但是我无法支持以下用例
我检查了UIGraph API但找不到太多信息。
任何提示都会非常有用。
答案 0 :(得分:0)
请将正确的代码添加到原始帖子中。这就是你的代码的样子
transfersGraphSelectionListener(SelectionEvent selectionEvent){
Set<GraphSelection> selectionSet = selectionEvent.getGraphSelection();
for (GraphSelection selection : selectionSet) {
if (selection instanceof DataSelection) {
DataSelection ds = (DataSelection) selection;
Set seriesKeySet = ds.getSeriesKey().keySet();
for (Object key : seriesKeySet) {
Object selectedKey = ds.getSeriesKey().get((String) key))
}
看起来有些东西不见了!