Skip to content

Remote Chart #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 19, 2025
Merged
Prev Previous commit
Fixed some issues from candlestick charts and GeoMap.
  • Loading branch information
Imiss-U1025 committed Jan 19, 2025
commit 9659cdfabc52d0b18a13d68c69ac3d785170f0b6
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function getEchartsConfig(
},
xAxis: props?.echartsOption && {
type: 'category',
data: props?.echartsData.xAxis && props?.echartsOption.xAxis.data,
data: props?.echartsData.xAxis && props?.echartsData.xAxis.data || props?.echartsOption.xAxis && props?.echartsOption.xAxis.data,
splitArea: !props?.axisFlagVisibility && {
show: true,
areaStyle: {
Expand All @@ -205,7 +205,7 @@ export function getEchartsConfig(
},
// Show split areas, each day with a different background color
},
series: props?.echartsData || props?.echartsOption && [
series: props?.echartsOption && [
{
name: props?.echartsConfig.type,
type: props?.echartsConfig.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ MapTmpComp = withViewFn(MapTmpComp, (comp) => {
}, [mapScriptLoaded]);

const echartsConfigChildren = _.omit(comp.children, echartsConfigOmitChildren);
const childrenProps = childrenToProps(echartsConfigChildren);
const option = useMemo(() => {
return getEchartsConfig(
childrenProps as ToViewReturn<typeof echartsConfigChildren>,
Expand Down
Loading