|
1 | 1 | import { changeChildAction, CompAction } from "lowcoder-core";
|
2 |
| -import { ChartCompChildrenType, ChartTypeOptions, EchartsTypeOptions,getDataKeys } from "./chartConstants"; |
| 2 | +import { ChartCompChildrenType, ChartTypeOptions,getDataKeys } from "./chartConstants"; |
3 | 3 | import { newSeries } from "./seriesComp";
|
4 | 4 | import {
|
5 | 5 | CustomModal,
|
@@ -134,60 +134,6 @@ export function chartPropertyView(
|
134 | 134 |
|
135 | 135 | const jsonModePropertyView = (
|
136 | 136 | <>
|
137 |
| - <Section name={trans("chart.config")}> |
138 |
| - {children.echartsOption.propertyView({ |
139 |
| - label: trans("chart.echartsOptionLabel"), |
140 |
| - styleName: "higher", |
141 |
| - tooltip: ( |
142 |
| - <div> |
143 |
| - <a href={optionUrl} target="_blank" rel="noopener noreferrer"> |
144 |
| - {trans("chart.echartsOptionTooltip")} |
145 |
| - </a> |
146 |
| - <br /> |
147 |
| - <a href={examplesUrl} target="_blank" rel="noopener noreferrer"> |
148 |
| - {trans("chart.echartsOptionExamples")} |
149 |
| - </a> |
150 |
| - </div> |
151 |
| - ), |
152 |
| - })} |
153 |
| - <Dropdown |
154 |
| - value={children.echartsConfig.children.compType.getView()} |
155 |
| - options={EchartsTypeOptions} |
156 |
| - label={trans("chart.chartType")} |
157 |
| - onChange={(value) => { |
158 |
| - // keep the previous value |
159 |
| - if (children.echartsConfig.children.comp.children.hasOwnProperty("showLabel")) { |
160 |
| - children.echartsConfig.dispatchChangeValueAction({ |
161 |
| - compType: value as any, |
162 |
| - comp: { |
163 |
| - showLabel: ( |
164 |
| - children.echartsConfig.children.comp.children as any |
165 |
| - ).showLabel.toJsonValue(), |
166 |
| - }, |
167 |
| - }); |
168 |
| - } else { |
169 |
| - children.echartsConfig.dispatchChangeValueAction({ |
170 |
| - compType: value, |
171 |
| - }); |
172 |
| - } |
173 |
| - }} |
174 |
| - /> |
175 |
| - {children.echartsConfig.children.compType.getView() === "funnel" && |
176 |
| - <> |
177 |
| - {children.echartsLegendConfig.getPropertyView()} |
178 |
| - {children.echartsLabelConfig.getPropertyView()} |
179 |
| - </>} |
180 |
| - {children.echartsTitle.propertyView({ label: trans("echarts.title") })} |
181 |
| - {children.tooltip.propertyView({label: trans("echarts.tooltip")})} |
182 |
| - {children.legendVisibility.propertyView({label: trans("echarts.legendVisibility")})} |
183 |
| - </Section> |
184 |
| - <Section name={sectionNames.interaction}> |
185 |
| - {children.onEvent.propertyView()} |
186 |
| - </Section> |
187 |
| - <Section name={sectionNames.style}> |
188 |
| - {children.style.getPropertyView()} |
189 |
| - </Section> |
190 |
| - <Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section> |
191 | 137 | </>
|
192 | 138 | );
|
193 | 139 |
|
|
0 commit comments