Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: refactor interaction #5509

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions site/examples/component/tooltip/demo/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"title": {
"zh": "中文分类",
"en": "Category"
},
"demos": [
{
"filename": "tooltip.ts",
"title": {
"zh": "提示",
"en": "Tooltip"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1669041818314/tooltip1d.gif"
},
{
"filename": "tooltip2d.ts",
"title": {
"zh": "多维度提示",
"en": "Tooltip 2D"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1669041837078/tooltip2d.gif"
},
{
"filename": "tooltip-series.ts",
"title": {
"zh": "系列提示",
"en": "Tooltip Series"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1669041851542/series.gif"
},
{
"filename": "tooltip-custom.ts",
"title": {
"zh": "自定义提示",
"en": "Custom Tooltip"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1669041870958/custom.gif"
},
{
"filename": "tooltip-render.ts",
"title": {
"zh": "自定义渲染内容",
"en": "Custom Tooltip Rendering"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*WcxIS4inFuoAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "tooltip-click.ts",
"title": {
"zh": "点击提示",
"en": "Click Tooltip"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4YDhQZN5FogAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ chart
fontSize: 10,
});

chart.interaction('tooltip', true);

chart.render();
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ chart
.encode('y', 'frequency')
.axis('y', { labelFormatter: '.0%' });

chart.interaction('tooltip');

chart.render();
4 changes: 4 additions & 0 deletions site/examples/component/tooltip/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Tooltip
order: 2
---
4 changes: 4 additions & 0 deletions site/examples/component/tooltip/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 提示
order: 2
---
16 changes: 16 additions & 0 deletions site/examples/interaction/brush/demo/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": {
"zh": "中文分类",
"en": "Category"
},
"demos": [
{
"filename": "brush.ts",
"title": {
"zh": "刷选",
"en": "Brush"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*XbQtTrYgA88AAAAAAAAAAAAADmJ7AQ/original"
}
]
}
4 changes: 4 additions & 0 deletions site/examples/interaction/brush/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Brush
order: 3
---
4 changes: 4 additions & 0 deletions site/examples/interaction/brush/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 刷选
order: 3
---
16 changes: 16 additions & 0 deletions site/examples/interaction/component/demo/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": {
"zh": "中文分类",
"en": "Category"
},
"demos": [
{
"filename": "legend.ts",
"title": {
"zh": "图例",
"en": "Legend"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*MFXURoAPyocAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
4 changes: 4 additions & 0 deletions site/examples/interaction/component/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Component
order: 2
---
4 changes: 4 additions & 0 deletions site/examples/interaction/component/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 组件
order: 2
---
24 changes: 24 additions & 0 deletions site/examples/interaction/element/demo/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"title": {
"zh": "中文分类",
"en": "Category"
},
"demos": [
{
"filename": "highlight.ts",
"title": {
"zh": "高亮",
"en": "Highlight"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*h3zzSqWMrDkAAAAAAAAAAAAADmJ7AQ/original"
},
{
"filename": "select.ts",
"title": {
"zh": "选择",
"en": "Select"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*gwt_SpgIGsMAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
title: 交互
title: Element
order: 1
---
4 changes: 4 additions & 0 deletions site/examples/interaction/element/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 元素
order: 1
---
120 changes: 0 additions & 120 deletions site/examples/interaction/interaction/demo/meta.json

This file was deleted.

24 changes: 0 additions & 24 deletions site/examples/interaction/interaction/demo/slider.ts

This file was deleted.

4 changes: 0 additions & 4 deletions site/examples/interaction/interaction/index.en.md

This file was deleted.

16 changes: 16 additions & 0 deletions site/examples/interaction/multi-view/demo/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": {
"zh": "中文分类",
"en": "Category"
},
"demos": [
{
"filename": "focus-context.ts",
"title": {
"zh": "图表联动",
"en": "Focus and Context"
},
"screenshot": "https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*zQRoSI_fW4MAAAAAAAAAAAAADmJ7AQ/original"
}
]
}
4 changes: 4 additions & 0 deletions site/examples/interaction/multi-view/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Multi View
order: 5
---
4 changes: 4 additions & 0 deletions site/examples/interaction/multi-view/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 多视图
order: 5
---
24 changes: 24 additions & 0 deletions site/examples/interaction/other/demo/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"title": {
"zh": "中文分类",
"en": "Category"
},
"demos": [
{
"filename": "chart-index.ts",
"title": {
"zh": "索引图",
"en": "Chart Index"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1669041887727/chart-index.gif"
},
{
"filename": "fisheye.ts",
"title": {
"zh": "鱼眼",
"en": "Fisheye"
},
"screenshot": "https://gw.alipayobjects.com/zos/raptor/1669041902028/fisheye.gif"
}
]
}
4 changes: 4 additions & 0 deletions site/examples/interaction/other/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Other
order: 4
---
4 changes: 4 additions & 0 deletions site/examples/interaction/other/index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 其他
order: 4
---
Loading