Skip to content

Commit 591378b

Browse files
hustccBBSQQ
authored andcommitted
feat(area): add area demo (#1415)
* feat(area): add area demo * chore: simplify demo code
1 parent 8d91911 commit 591378b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/line/multiple/demo/marker-active.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fetch('https://gw.alipayobjects.com/os/bmw-prod/55424a73-7cb8-4f79-b60d-3ab627ac
1717
'#FF99C3',
1818
];
1919

20-
const container = document.getElementById('container');
20+
const container = 'container';
2121
const containerBox = container.getBoundingClientRect();
2222
const series = uniq(data.map((d) => d.category));
2323
const markerSize = 6;

examples/pie/basic/demo/custom-label.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const data = [
55
{ sex: '女', sold: 0.55 },
66
];
77

8-
const piePlot = new Pie(document.getElementById('container'), {
8+
const piePlot = new Pie('container', {
99
width: 400,
1010
height: 300,
1111
appendPadding: 10,

0 commit comments

Comments
 (0)