Skip to content

Commit

Permalink
doc(matrix): add examples for apache/echarts#19807
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed May 15, 2024
1 parent 723d485 commit 850f21d
Show file tree
Hide file tree
Showing 38 changed files with 16 additions and 18 deletions.
Binary file added public/data/thumb-dark/matrix-confusion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb-dark/matrix-confusion.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added public/data/thumb-dark/matrix-covariance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb-dark/matrix-covariance.webp
Binary file not shown.
Binary file added public/data/thumb-dark/matrix-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb-dark/matrix-graph.webp
Binary file not shown.
Binary file added public/data/thumb-dark/matrix-periodic-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb-dark/matrix-periodic-table.webp
Binary file not shown.
Binary file added public/data/thumb-dark/matrix-pie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb-dark/matrix-pie.webp
Binary file not shown.
Binary file added public/data/thumb-dark/matrix-simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb-dark/matrix-simple.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-confusion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-confusion.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-correlation-heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-correlation-heatmap.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-correlation-scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-correlation-scatter.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-covariance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-covariance.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-graph.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-periodic-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-periodic-table.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-pie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-pie.webp
Binary file not shown.
Binary file added public/data/thumb/matrix-simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/thumb/matrix-simple.webp
Binary file not shown.
17 changes: 1 addition & 16 deletions public/examples/ts/matrix-correlation-heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,7 @@ option = {
calculable: true,
orient: 'horizontal',
top: 5,
left: 'center',
inRange: {
color: [
'#313695',
'#4575b4',
'#74add1',
'#abd9e9',
'#e0f3f8',
'#ffffbf',
'#fee090',
'#fdae61',
'#f46d43',
'#d73027',
'#a50026'
]
}
left: 'center'
},
series: {
type: 'heatmap',
Expand Down
10 changes: 8 additions & 2 deletions public/examples/ts/matrix-covariance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,21 @@ for (let i = 1; i <= size; ++i) {
option = {
matrix: {
x: {
data: xData
data: xData,
show: false
},
y: {
data: yData
data: yData,
show: false
},
width: 500,
height: 500,
left: (window.innerWidth - 500) / 2
},
tooltip: {
show: true,
valueFormatter: value => Math.round(value)
},
visualMap: {
type: 'continuous',
min: 15,
Expand Down
3 changes: 3 additions & 0 deletions src/asset/icon/matrix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/common/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const EXAMPLE_CATEGORIES = [
'pictorialBar',
'themeRiver',
'calendar',
'matrix',
'custom',

'dataset',
Expand Down
2 changes: 2 additions & 0 deletions src/common/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export default {
pictorialBar: 'PictorialBar',
themeRiver: 'ThemeRiver',
calendar: 'Calendar',
matrix: 'Matrix',
custom: 'Custom',

dataset: 'Dataset',
Expand Down Expand Up @@ -237,6 +238,7 @@ export default {
pictorialBar: '象形柱图',
themeRiver: '主题河流图',
calendar: '日历坐标系',
matrix: '矩阵坐标系',
custom: '自定义系列',

dataset: '数据集',
Expand Down
1 change: 1 addition & 0 deletions src/explore/Explore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const icons = {};
'pictorialBar',
'themeRiver',
'calendar',
'matrix',
'custom',
'sunburst',
'tree',
Expand Down

0 comments on commit 850f21d

Please sign in to comment.