Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add label toggle in the TreeChart
  • Loading branch information
iamfaran committed Apr 25, 2025
commit 55e43b280cffe6f3fb61664afc355851306e3bd4
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ let chartJsonModeChildren: any = {
edgeShape: withDefault(BoolControl, true),
tooltip: withDefault(BoolControl, true),
legendVisibility: withDefault(BoolControl, true),
labelVisibility: withDefault(BoolControl, true),
}

if (RadarLabelStyle && EchartDefaultChartStyle && EchartDefaultTextStyle) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export function treeChartPropertyView(
{children.lineWidth.propertyView({ label: trans("treeChart.lineWidth"), tooltip: trans("treeChart.lineWidthTooltip") })}

{children.tooltip.propertyView({label: trans("treeChart.tooltip")})}
{children.labelVisibility.propertyView({
label: trans("treeChart.labelVisibility"),
tooltip: trans("echarts.labelVisibilityTooltip")
})}

</Section>
<Section name={sectionNames.interaction}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export function getEchartsConfig(
symbolSize: props?.pointSize || 20, // Control the size of the nodes
data: props?.echartsData.length !== 0 && props?.echartsData || props.echartsOption.data,
label: {
show: props?.labelVisibility,
position: "top",
verticalAlign: "middle",
align: "right",
Expand Down
4 changes: 3 additions & 1 deletion client/packages/lowcoder-comps/src/i18n/comps/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export const en = {
pointSizeTooltip: "Set the Point Size of the Chart.",
defaultlineWidth: '2',
lineWidth: "Line Width",
lineWidthTooltip: "Set the Line Width of the Chart."
lineWidthTooltip: "Set the Line Width of the Chart.",
labelVisibility: "Label",
labelVisibilityTooltip: "Show or hide the Label of the Chart."
},
graphChart: {
categories: 'Categories',
Expand Down