Skip to content

Commit 9659cdf

Browse files
committed
Fixed some issues from candlestick charts and GeoMap.
1 parent c2bd024 commit 9659cdf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

client/packages/lowcoder-comps/src/comps/candleStickChartComp/candleStickChartUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function getEchartsConfig(
187187
},
188188
xAxis: props?.echartsOption && {
189189
type: 'category',
190-
data: props?.echartsData.xAxis && props?.echartsOption.xAxis.data,
190+
data: props?.echartsData.xAxis && props?.echartsData.xAxis.data || props?.echartsOption.xAxis && props?.echartsOption.xAxis.data,
191191
splitArea: !props?.axisFlagVisibility && {
192192
show: true,
193193
areaStyle: {
@@ -205,7 +205,7 @@ export function getEchartsConfig(
205205
},
206206
// Show split areas, each day with a different background color
207207
},
208-
series: props?.echartsData || props?.echartsOption && [
208+
series: props?.echartsOption && [
209209
{
210210
name: props?.echartsConfig.type,
211211
type: props?.echartsConfig.type,

client/packages/lowcoder-comps/src/comps/chartsGeoMapComp/chartsGeoMapComp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ MapTmpComp = withViewFn(MapTmpComp, (comp) => {
116116
}, [mapScriptLoaded]);
117117

118118
const echartsConfigChildren = _.omit(comp.children, echartsConfigOmitChildren);
119+
const childrenProps = childrenToProps(echartsConfigChildren);
119120
const option = useMemo(() => {
120121
return getEchartsConfig(
121122
childrenProps as ToViewReturn<typeof echartsConfigChildren>,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy