Skip to content

Commit 56f6afd

Browse files
committed
Changed theme river's language file.
1 parent cbbbd52 commit 56f6afd

File tree

2 files changed

+34
-36
lines changed

2 files changed

+34
-36
lines changed

client/packages/lowcoder-comps/src/comps/themeriverChartComp/themeriverChartUtils.ts

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ export function getEchartsConfig(
136136
theme?: any,
137137
): EChartsOptionWithMap {
138138
if (props.mode === "json") {
139-
140-
console.log(props.echartsOption)
141139
let opt= props.echartsOption && {
142140
title: {
143141
text: props?.echartsTitle,
@@ -148,62 +146,62 @@ export function getEchartsConfig(
148146
}
149147
},
150148
backgroundColor: parseBackground(props?.chartStyle?.background || theme?.chartStyle?.backgroundColor || "#FFFFFF"),
151-
"tooltip": props.tooltip&&{
152-
"trigger": "axis",
153-
"axisPointer": {
154-
"type": "line",
155-
"lineStyle": {
156-
"color": "rgba(0,0,0,0.2)",
157-
"width": 2,
158-
"type": "solid"
149+
tooltip: props.tooltip&&{
150+
trigger: "axis",
151+
axisPointer: {
152+
type: "line",
153+
lineStyle: {
154+
color: "rgba(0,0,0,0.2)",
155+
width: 2,
156+
type: "solid"
159157
}
160158
}
161159
},
162160
legend: props.legendVisibility && {
163-
"top": props.echartsLegendConfig.top,
164-
"left": props.echartsLegendAlignConfig.left,
165-
"orient": props.echartsLegendOrientConfig.orient,
161+
top: props.echartsLegendConfig.top,
162+
left: props.echartsLegendAlignConfig.left,
163+
orient: props.echartsLegendOrientConfig.orient,
166164
data: props?.echartsOption?.data && Array.from(new Set((props.echartsOption.data).map(item => item[2]))),
167165
textStyle: {
168166
...styleWrapper(props?.legendStyle, theme?.legendStyle, 13)
169167
}
170168
},
171-
"singleAxis": {
169+
singleAxis: {
172170
left: `${props?.left}%`,
173171
right: `${props?.right}%`,
174172
bottom: `${props?.bottom}%`,
175173
top: `${props?.top}%`,
176-
"type": "time",
177-
"axisTick": {},
178-
"axisLabel": {
174+
type: "time",
175+
axisTick: {},
176+
axisLabel: {
179177
...styleWrapper(props?.axisStyle, theme?.axisStyle, 13)
180178
},
181-
"splitLine": {},
182-
"axisPointer": {
183-
"animation": true,
184-
"label": {
185-
"show": true,
186-
"color": "#fff"
179+
splitLine: {},
180+
axisPointer: {
181+
animation: true,
182+
label: {
183+
show: true,
184+
color: "#fff"
187185
}
188186
},
189-
"splitNumber": props?.splitNumber
187+
splitNumber: props?.splitNumber
190188
},
191-
"series": [
189+
series: [
192190
{
193-
"type": props.echartsConfig.type,
194-
"data": props.echartsOption.data,
195-
"label": {
196-
"show": true,
197-
"position": "top",
198-
"fontSize": 12
191+
type: props.echartsConfig.type,
192+
data: props.echartsOption.data,
193+
label: {
194+
show: true,
195+
position: "top",
196+
fontSize: 12
199197
},
200198
itemStyle: {
201199
...chartStyleWrapper(props?.chartStyle, theme?.chartStyle),
202200
},
203-
"emphasis": {
204-
"itemStyle": {
205-
"shadowBlur": 20,
206-
"shadowColor": "rgba(0, 0, 0, 0.8)"
201+
emphasis: {
202+
itemStyle: {
203+
shadowBlur: 20,
204+
shadowColor: "rgba(0, 0, 0, 0.8)"
207205
}
208206
},
209207
color: props.echartsOption?.color && props.echartsOption.color

client/packages/lowcoder-comps/src/i18n/comps/locales/enObj.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ export const enObj: I18nObjects = {
492492
]
493493
},
494494
defaultThemeriverChartOption: {
495-
color: ['#5470C6', '#91CC75', '#FAC858', '#6b51a1'],
496495
data: [
497496
['2025-01-01', 12, 'Product A'],
498497
['2025-01-01', 10, 'Product B'],
@@ -515,6 +514,7 @@ export const enObj: I18nObjects = {
515514
['2025-01-05', 20, 'Product C'],
516515
['2025-01-05', 11, 'Product D']
517516
],
517+
color: ['#5470C6', '#91CC75', '#FAC858', '#6b51a1']
518518
},
519519

520520
defaultMapJsonOption: defaultMapData,

0 commit comments

Comments
 (0)