Skip to content

Commit

Permalink
fix(demo): fix line, area demo (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc authored Nov 21, 2020
1 parent a328e7b commit 0dc8bf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
1 change: 1 addition & 0 deletions examples/area/basic/demo/basic-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fetch('https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38cc
xAxis: {
tickCount: 5,
},
animation: false,
slider: {
start: 0.1,
end: 0.9,
Expand Down
19 changes: 1 addition & 18 deletions examples/line/basic/demo/line-point-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,12 @@ const line = new Line('container', {
state: {
active: {
style: {
shadowColor: 'yellow',
shadowBlur: 4,
stroke: 'transparent',
stroke: '#000',
fill: 'red',
},
},
},
theme: {
geometries: {
point: {
// 设置 point(geometry)-diamond(shape) 样式
diamond: {
active: {
style: {
shadowColor: '#FCEBB9',
shadowBlur: 2,
stroke: '#F6BD16',
},
},
},
},
},
},
interactions: [{ type: 'marker-active' }],
});

Expand Down
8 changes: 4 additions & 4 deletions examples/line/basic/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@
"zh": "基础折线图",
"en": "Basic line plot"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ASuIQr9C7Q4AAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*DRzUQ4UkxjMAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "line-point-style.ts",
"title": {
"zh": "配置折线数据点样式",
"en": "Line plot data point style"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*tnfLTbhoBvcAAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*VN5SQYsPOaIAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "line-slider.ts",
"title": {
"zh": "带缩略轴的折线",
"en": "Line plot with slider"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*T0pISJhToPEAAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*r8MPQ4n9CIQAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "line-annotation.ts",
"title": {
"zh": "折线图带图表标注",
"en": "Line plot with guide line"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*ElDbQ4yz14kAAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_d314dd/afts/img/A*7V6nSpj64uYAAAAAAAAAAAAAARQnAQ"
}
]
}

0 comments on commit 0dc8bf2

Please sign in to comment.