Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02f61eb

Browse files
committed
fix chart theme
1 parent9a900cc commit02f61eb

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

‎client/packages/lowcoder-comps/src/comps/barChartComp/barChartComp.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ BarChartTmpComp = withViewFn(BarChartTmpComp, (comp) => {
7575
log.error('theme chart error: ',error);
7676
}
7777

78+
7879
// Detect race mode changes and force chart recreation
7980
constcurrentRaceMode=comp.children.chartConfig?.children?.comp?.children?.race?.getView();
8081
useEffect(()=>{
@@ -172,7 +173,6 @@ BarChartTmpComp = withViewFn(BarChartTmpComp, (comp) => {
172173
useResizeDetector({
173174
targetRef:containerRef,
174175
onResize:({width, height})=>{
175-
console.log('barChart - resize');
176176
if(width&&height){
177177
setChartSize({w:width,h:height});
178178
}
@@ -194,6 +194,7 @@ BarChartTmpComp = withViewFn(BarChartTmpComp, (comp) => {
194194
notMerge={!currentRaceMode}
195195
lazyUpdate={!currentRaceMode}
196196
opts={{locale:getEchartsLocale()}}
197+
theme={themeConfig}
197198
option={option}
198199
mode={mode}
199200
/>

‎client/packages/lowcoder-comps/src/comps/lineChartComp/lineChartComp.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ LineChartTmpComp = withViewFn(LineChartTmpComp, (comp) => {
174174
notMerge
175175
lazyUpdate
176176
opts={{locale:getEchartsLocale()}}
177+
theme={themeConfig}
177178
option={option}
178179
mode={mode}
179180
/>

‎client/packages/lowcoder-comps/src/comps/pieChartComp/pieChartComp.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ PieChartTmpComp = withViewFn(PieChartTmpComp, (comp) => {
194194
notMerge
195195
lazyUpdate
196196
opts={{locale:getEchartsLocale()}}
197+
theme={themeConfig}
197198
option={option}
198199
mode={mode}
199200
/>

‎client/packages/lowcoder-comps/src/comps/scatterChartComp/scatterChartComp.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ ScatterChartTmpComp = withViewFn(ScatterChartTmpComp, (comp) => {
175175
notMerge
176176
lazyUpdate
177177
opts={{locale:getEchartsLocale()}}
178+
theme={themeConfig}
178179
option={option}
179180
mode={mode}
180181
/>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp