Skip to content

Commit d071fc9

Browse files
committed
Improve GraphChart Data
1 parent 4e4280f commit d071fc9

File tree

1 file changed

+21
-17
lines changed
  • client/packages/lowcoder-comps/src/i18n/comps/locales

1 file changed

+21
-17
lines changed

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

+21-17
Original file line numberDiff line numberDiff line change
@@ -410,23 +410,27 @@ export const enObj: I18nObjects = {
410410
]
411411
},
412412
defaultGraphChartOption: {
413-
color:{
414-
pointColor: "#0000ff",
415-
lineColor: "#00000033"
416-
},
417-
categories: [
418-
{name: "Nodes"},
419-
{name: "Edges"}
420-
],
421-
nodes: [
422-
{name: "Node 1", category: 0},
423-
{name: "Node 2", category: 0},
424-
{name: "Node 3", category: 0}
425-
],
426-
links: [
427-
{source: "Node 1", target: "Node 2", category: 1},
428-
{source: "Node 2", target: "Node 3", category: 1}
429-
]
413+
color: {
414+
pointColor: "#4285F4",
415+
lineColor: "#00000045"
416+
},
417+
categories: [
418+
{name: "Person", itemStyle: {color: "#4285F4"}},
419+
{name: "Company", itemStyle: {color: "#34A853"}},
420+
{name: "Project", itemStyle: {color: "#EA4335"}}
421+
],
422+
nodes: [
423+
{id: "1", name: "John Smith", value: 25, category: 0, symbolSize: 25},
424+
{id: "2", name: "Jane Doe", value: 20, category: 0, symbolSize: 20},
425+
{id: "3", name: "Acme Inc", value: 30, category: 1, symbolSize: 30},
426+
{id: "4", name: "Project X", value: 25, category: 2, symbolSize: 25}
427+
],
428+
links: [
429+
{source: "1", target: "3", value: 8, lineStyle: {width: 2}},
430+
{source: "1", target: "4", value: 6, lineStyle: {width: 2}},
431+
{source: "2", target: "3", value: 5, lineStyle: {width: 1}},
432+
{source: "3", target: "4", value: 9, lineStyle: {width: 3}}
433+
]
430434
},
431435
defaultTreeChartOption: {
432436
data: [{

0 commit comments

Comments
 (0)