Skip to content

Commit 38bdda7

Browse files
committed
check for area pieces length
1 parent aad0007 commit 38bdda7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎client/packages/lowcoder-comps/src/comps/lineChartComp/lineChartUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function getEchartsConfig(
205205
},
206206
visualMap: {
207207
type: 'piecewise',
208-
show: false,
208+
show: props.areaPieces.length > 0,
209209
dimension: 0,
210210
seriesIndex: 0,
211211
pieces: props.areaPieces?.filter(p => p.getView().from && p.getView().to && p.getView().color)?.map(p => (

0 commit comments

Comments
 (0)