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

fix: docs #1811

Merged
merged 1 commit into from
Oct 30, 2020
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
2 changes: 1 addition & 1 deletion docs/common/legend.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ legend: {
| style | object 参考绘图属性 | | - | 文本样式配置项 |
| spacing | number | | - | 文本同滑轨的距离 |

##### maker
##### marker

<description>**可选** _MarkerCfg_ </description>

Expand Down
2 changes: 1 addition & 1 deletion docs/common/legend.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ legend: {
| style | object 参考绘图属性 | | - | 文本样式配置项 |
| spacing | number | | - | 文本同滑轨的距离 |

##### maker
##### marker

<description>**可选** _MarkerCfg_ </description>

Expand Down
7 changes: 0 additions & 7 deletions examples/rose/grouped/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ const rosePlot = new Rose('container', {
// 当 isGroup 为 true 时,该值为必填
seriesField: 'user',
radius: 0.9,
xAxis: {
line: {
style: {
lineWidth: 0,
},
},
},
label: {
offset: -15,
},
Expand Down
2 changes: 1 addition & 1 deletion examples/rose/grouped/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"zh": "分组玫瑰图",
"en": "basic Group Rose chart"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*KDVrQZvVQzMAAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*EUesQ4eJ1fcAAAAAAAAAAAAAARQnAQ"
}
]
}
7 changes: 0 additions & 7 deletions examples/rose/stacked/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ const rosePlot = new Rose('container', {
// 当 isStack 为 true 时,该值为必填
seriesField: 'user',
radius: 0.9,
xAxis: {
line: {
style: {
lineWidth: 0,
},
},
},
label: {
offset: -15,
},
Expand Down
2 changes: 1 addition & 1 deletion examples/rose/stacked/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"zh": "堆叠玫瑰图",
"en": "basic Stack Rose chart"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*8fJ4Q7PHkKQAAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*4_9_Q63oXWgAAAAAAAAAAAAAARQnAQ"
}
]
}
6 changes: 3 additions & 3 deletions examples/sunburst/basic/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f5c722/afts/img/A*UbXJTZ9weikAAAAAAAAAAABkARQnAQ"
},
{
"filename": "refect.ts",
"filename": "reflect.ts",
"title": {
"zh": "指定径向类型",
"en": "specifies the refect type"
"en": "specifies the reflect type"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*SlsPRZgT9fwAAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*VXhvSYH8YowAAAAAAAAAAAAAARQnAQ"
}
]
}
12 changes: 11 additions & 1 deletion examples/word-cloud/basic/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,21 @@ fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/world-population.jso
data,
wordField: 'x',
weightField: 'value',
color: '#6262ff',
color: '#122c6a',
wordStyle: {
fontFamily: 'Verdana',
fontSize: [24, 80],
},
// 设置交互类型
interactions: [{ type: 'element-active' }],
state: {
active: {
// 这里可以设置 active 时的样式
style: {
lineWidth: 3,
},
},
},
});

wordCloud.render();
Expand Down
31 changes: 0 additions & 31 deletions examples/word-cloud/basic/demo/custom-tooltip.ts

This file was deleted.

28 changes: 0 additions & 28 deletions examples/word-cloud/basic/demo/interaction.ts

This file was deleted.

22 changes: 3 additions & 19 deletions examples/word-cloud/basic/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@
"zh": "词云图",
"en": "basic Word Cloud chart"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*SEgST634CwUAAAAAAAAAAABkARQnAQ"
},
{
"filename": "interaction.ts",
"title": {
"zh": "词云图-交互效果",
"en": "Word Cloud chart - interaction"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_2274c3/afts/img/A*SEgST634CwUAAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*MBDPS6YX7y0AAAAAAAAAAAAAARQnAQ"
},
{
"filename": "image-mask.ts",
Expand All @@ -36,14 +28,6 @@
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*qkYyQqFTU4YAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "custom-tooltip.ts",
"title": {
"zh": "词云图-自定义Tooltip",
"en": "Word Cloud chart - custom tooltip"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f5c722/afts/img/A*id4CSZIMCtsAAAAAAAAAAABkARQnAQ"
},
{
"filename": "color-field.ts",
"title": {
Expand All @@ -58,15 +42,15 @@
"zh": "词云图-每次渲染保持位置不变",
"en": "Word Cloud chart - keep the position unchanged"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f5c722/afts/img/A*id4CSZIMCtsAAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*CDgnRaN9iXkAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "placement-strategy.ts",
"title": {
"zh": "词云图-自定义每个词语位置",
"en": "Word Cloud chart - custom placement"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_f5c722/afts/img/A*id4CSZIMCtsAAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*BV6DQYM6KFMAAAAAAAAAAAAAARQnAQ"
}
]
}
2 changes: 1 addition & 1 deletion src/plots/box/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Box extends Plot<BoxOptions> {
// 默认区域交互
interactions: [{ type: 'active-region' }],

// 默认 tooltips 共享,不显示 makers
// 默认 tooltips 共享,不显示 markers
tooltip: {
showMarkers: false,
showCrosshairs: true,
Expand Down