Skip to content

Commit 5a6a55f

Browse files
committed
Improve CandleChart Data
1 parent 6f26f02 commit 5a6a55f

File tree

1 file changed

+22
-13
lines changed
  • client/packages/lowcoder-comps/src/i18n/comps/locales

1 file changed

+22
-13
lines changed

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

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -329,21 +329,30 @@ export const enObj: I18nObjects = {
329329
},
330330
defaultCandleStickChartOption: {
331331
xAxis: {
332-
data: ["Day 1", "Day 2", "Day 3", "Day 4", "Day 5"],
333-
},
334-
axisColor: ['#f0f0f0', '#ffffff'],
335-
data:[
336-
[22, 25, 18, 26],
337-
[25, 23, 22, 27],
338-
[23, 24, 21, 25],
339-
[24, 26, 23, 27],
340-
[23, 21, 20, 25]
332+
data: [
333+
"2024-03-01", "2024-03-04", "2024-03-05", "2024-03-06", "2024-03-07",
334+
"2024-03-08", "2024-03-11", "2024-03-12", "2024-03-13", "2024-03-14"
341335
],
336+
},
337+
axisColor: ['#E9EBF1', '#ffffff'],
338+
data: [
339+
// Format: [open, close, lowest, highest]
340+
[185.43, 188.52, 184.74, 189.12], // Bullish day
341+
[188.32, 186.85, 186.21, 189.95], // Bearish day
342+
[186.90, 187.65, 185.83, 188.12], // Small bullish day
343+
[187.75, 185.20, 184.90, 187.85], // Bearish day
344+
[185.35, 189.20, 185.15, 189.45], // Strong bullish day
345+
[189.10, 187.50, 186.80, 189.30], // Bearish day
346+
[187.60, 190.25, 187.40, 190.50], // Strong bullish day
347+
[190.15, 189.75, 188.90, 191.20], // Small bearish day
348+
[189.80, 192.35, 189.60, 192.50], // Strong bullish day
349+
[192.40, 191.85, 191.20, 193.15] // Small bearish day
350+
],
342351
itemStyle: {
343-
color: '#ec0000', // Body color (rising)
344-
color0: '#00da3c', // Body color (falling)
345-
borderColor: '#ec0000', // Border color (rising)
346-
borderColor0: '#00da3c', // Border color (falling)
352+
color: '#26A69A', // Bullish candle color (green)
353+
color0: '#EF5350', // Bearish candle color (red)
354+
borderColor: '#26A69A', // Bullish border color
355+
borderColor0: '#EF5350' // Bearish border color
347356
}
348357
},
349358
defaultRadarChartOption: {

0 commit comments

Comments
 (0)