Skip to content

Commit 8a0fbd0

Browse files
committed
Added descriptions to properties of funnel chart.
1 parent c5020f9 commit 8a0fbd0

File tree

9 files changed

+25
-7
lines changed

9 files changed

+25
-7
lines changed

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsFunnelAlignConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const EchartsFunnelAlignConfig = (function () {
4141
{children.funnelAlign.propertyView({
4242
label: trans("echarts.funnelAlign"),
4343
radioButton: true,
44+
tooltip: trans("echarts.changingAlignTooltip")
4445
})}
4546
</>
4647
))

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsLabelConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const EchartsLabelConfig = (function () {
4242
{children.position.propertyView({
4343
label: trans("echarts.labelPosition"),
4444
radioButton: true,
45+
tooltip: trans("echarts.changingLabelTooltip")
4546
})}
4647
</>
4748
))

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsLegendAlignConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const EchartsLegendAlignConfig = (function () {
4242
{children.left.propertyView({
4343
label: trans("echarts.legendAlign"),
4444
radioButton: true,
45+
tooltip: trans("echarts.changingLegend_y_Tooltip")
4546
})}
4647
</>
4748
))

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsLegendConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const EchartsLegendConfig = (function () {
3737
{children.position.propertyView({
3838
label: trans("echarts.legendPosition"),
3939
radioButton: true,
40+
tooltip: trans("echarts.changingLegend_x_Tooltip")
4041
})}
4142
</>
4243
))

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsLegendOrientConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const EchartsLegendOrientConfig = (function () {
3737
{children.orient.propertyView({
3838
label: trans("echarts.legendOrient"),
3939
radioButton: true,
40+
tooltip: trans("echarts.changingLegend_orient_Tooltip")
4041
})}
4142
</>
4243
))

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsSortingConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const EchartsSortingConfig = (function () {
3636
{children.sort.propertyView({
3737
label: trans("echarts.sort"),
3838
radioButton: true,
39+
tooltip: trans("echarts.changingSortTooltip")
3940
})}
4041
</>
4142
))

client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/echartsTitleConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const EchartsTitleConfig = (function () {
4242
{children.position.propertyView({
4343
label: trans("echarts.titlePosition"),
4444
radioButton: true,
45+
tooltip: trans("echarts.changingTitle_x_Tooltip")
4546
})}
4647
</>
4748
))

client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartPropertyView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export function funnelChartPropertyView(
3333
})}
3434
{children.echartsTitleConfig.getPropertyView()}
3535
{children.legendVisibility.getView() && children.echartsLegendConfig.getPropertyView()}
36-
{children.legendVisibility.getView() && children.echartsLegendOrientConfig.getPropertyView()}
3736
{children.legendVisibility.getView() && children.echartsLegendAlignConfig.getPropertyView()}
37+
{children.legendVisibility.getView() && children.echartsLegendOrientConfig.getPropertyView()}
3838
{children.echartsSortingConfig.getPropertyView()}
3939
{children.label.getView()&& children.echartsLabelConfig.getPropertyView()}
4040
{children.echartsFunnelAlignConfig.getPropertyView()}
@@ -47,9 +47,9 @@ export function funnelChartPropertyView(
4747
{children.gap.propertyView({ label: trans("funnelChart.gap") })}
4848
{children.opacity.propertyView({ label: trans("funnelChart.opacity") })}
4949
{children.echartsTitle.propertyView({ label: trans("funnelChart.title") })}
50-
{children.tooltip.propertyView({label: trans("funnelChart.tooltip")})}
51-
{children.label.propertyView({label: trans("funnelChart.label")})}
52-
{children.legendVisibility.propertyView({label: trans("funnelChart.legendVisibility")})}
50+
{children.tooltip.propertyView({label: trans("funnelChart.tooltip"), tooltip: trans("echarts.tooltipVisibilityTooltip")})}
51+
{children.label.propertyView({label: trans("funnelChart.label"), tooltip: trans("echarts.labelVisibilityTooltip")})}
52+
{children.legendVisibility.propertyView({label: trans("funnelChart.legendVisibility"), tooltip: trans("echarts.legendVisibilityTooltip")})}
5353
</Section>
5454
<Section name={sectionNames.interaction}>
5555
{children.onEvent.propertyView()}

client/packages/lowcoder-comps/src/i18n/comps/locales/en.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,25 @@ export const en = {
141141
},
142142
echarts: {
143143
defaultTitle: "Data Display",
144-
legendPosition: "Legend-X",
144+
legendPosition: "Legend-Y",
145145
legendOrient: "Legend Orient",
146-
legendAlign: "Legend-Y",
147-
labelPosition: "Label-X",
146+
legendAlign: "Legend-X",
147+
labelPosition: "Label Position",
148148
titlePosition: "Title-X",
149149
titlePositionVertical: "Title-Y",
150150
funnelAlign: "Funnel Align",
151151
sort: "Sort",
152+
changingTitle_x_Tooltip: "Change the Horizontal position of the Title.",
153+
changingLegend_x_Tooltip: "Change the Horizontal position of the Legend.",
154+
changingLegend_y_Tooltip: "Change the Vertical position of the Legend.",
155+
changingLegend_orient_Tooltip: "Change the Orientation of the Legend.",
156+
changingSortTooltip: "Change the Sorting direction.",
157+
changingLabelTooltip: "Change the Position of the Label.",
158+
changingAlignTooltip: "Change the Alignment of the Chart.",
159+
tooltipVisibilityTooltip: "Show or hide the ToolTips of the chart.",
160+
labelVisibilityTooltip: "Show or hide the Labels of the chart.",
161+
legendVisibilityTooltip: "Show or hide the Legend of the chart.",
162+
152163
},
153164
chart: {
154165
delete: "Delete",

0 commit comments

Comments
 (0)