|
|
|
@ -64,11 +64,14 @@ public class VanChartLabelPane extends AbstractVanChartScrollPane<Chart> {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
ConditionAttr attrList = chart.getPlot().getConditionCollection().getDefaultAttr(); |
|
|
|
|
|
|
|
|
|
// labelPane中颜色选择器会触发listener.doChange(),导致style界面update两次,
|
|
|
|
|
// 为了避免递归updateBean时,remove与add不匹配,调整一下labelPane.update()的位置
|
|
|
|
|
AttrLabel attrLabel = labelPane.update(); |
|
|
|
|
DataSeriesCondition attr = ((VanChartPlot)chart.getPlot()).getAttrLabelFromConditionCollection(); |
|
|
|
|
if(attr != null) { |
|
|
|
|
attrList.remove(attr); |
|
|
|
|
} |
|
|
|
|
AttrLabel attrLabel = labelPane.update(); |
|
|
|
|
if (attrLabel != null) { |
|
|
|
|
attrList.addDataSeriesCondition(attrLabel); |
|
|
|
|
} |
|
|
|
|