|
|
|
@ -2,6 +2,7 @@ package com.fr.design.chart.gui;
|
|
|
|
|
|
|
|
|
|
import com.fr.base.chart.BaseChartGetter; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
|
import com.fr.design.gui.core.WidgetOption; |
|
|
|
|
import com.fr.form.ui.ChartEditor; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
@ -40,6 +41,7 @@ public class ChartWidgetOption extends WidgetOption {
|
|
|
|
|
try { |
|
|
|
|
ChartEditor widget = clz.newInstance(); |
|
|
|
|
ChartCollection chartCollection = (ChartCollection) BaseChartGetter.createChartCollection(this.chartID); |
|
|
|
|
chartCollection.setThemeStyle(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().getTemplateTheme()); |
|
|
|
|
VanChart vanChart = chartCollection.getSelectedChartProvider(VanChart.class); |
|
|
|
|
if (vanChart !=null) { |
|
|
|
|
vanChart.resetAttrInForm(); |
|
|
|
|