This is an automated email from the ASF dual-hosted git repository. sushuang pushed a commit to branch feat-some-v6-examples in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
commit 2257e13a0c4c0c1978915daea4747248cc8dc670 Author: 100pah <sushuang0...@gmail.com> AuthorDate: Mon Aug 4 05:55:53 2025 +0800 Add example. --- public/examples/ts/doc-example/matrix-graph-box.ts | 52 ++++++++++++++++++++++ public/examples/ts/geo-choropleth-scatter.ts | 3 +- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/public/examples/ts/doc-example/matrix-graph-box.ts b/public/examples/ts/doc-example/matrix-graph-box.ts new file mode 100644 index 00000000..f453c712 --- /dev/null +++ b/public/examples/ts/doc-example/matrix-graph-box.ts @@ -0,0 +1,52 @@ +/* +title: Graph Chart in Matrix +category: matrix +titleCN: 矩阵布局下的关系图 +difficulty: 2 +*/ + +option = { + matrix: { + x: { + levelSize: 50, + data: ['a', 'b', 'c', 'd'], + }, + y: { + levelSize: 50, + data: ['x', 'y', 'z'], + }, + }, + series: [ + { + type: 'graph', + coordinateSystem: 'matrix', + coordinateSystemUsage: 'box', + coord: [2, 1], + edgeSymbol: ['none', 'arrow'], + symbolSize: 15, + links: [ + {source: 1, target: 0}, + {source: 2, target: 0}, + {source: 3, target: 0}, + {source: 4, target: 3}, + {source: 4, target: 2}, + {source: 5, target: 1}, + {source: 6, target: 3} + ], + data: [ + { name: 'a', x: 110, y: 100, value: [134] }, + { name: 'b', x: 270, y: 10, value: [421] }, + { name: 'c', x: 330, y: 100, value: [152] }, + { name: 'd', x: 401, y: 500, value: [216] }, + { name: 'e', x: 530, y: 200, value: [155] }, + { name: 'f', x: 610, y: 140, value: [212] }, + { name: 'g', x: 780, y: 70, value: [161] } + ], + lineStyle: { + color: '#9af', + width: 2, + opacity: 1 + } + } + ], +}; diff --git a/public/examples/ts/geo-choropleth-scatter.ts b/public/examples/ts/geo-choropleth-scatter.ts index c5401537..6c407cbf 100644 --- a/public/examples/ts/geo-choropleth-scatter.ts +++ b/public/examples/ts/geo-choropleth-scatter.ts @@ -73,7 +73,7 @@ function createChart() { itemStyle: { color: '#66c2a5', borderWidth: 1, - borderColor: '#fff', + borderColor: '#3c7865', } }, { @@ -82,6 +82,7 @@ function createChart() { // Specify geoIndex to share the geo component with the scatter series above, // instead of creating an internal geo coord sys. geoIndex: 0, + map: '', data: [ { name: 'Austurland', value: 423 }, { name: 'Suðurland', value: 256 }, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org