Skip to content

Commit

Permalink
feat(area): add area demo (#1415)
Browse files Browse the repository at this point in the history
* feat(area): add area demo

* chore: simplify demo code
  • Loading branch information
hustcc authored and BBSQQ committed Aug 25, 2020
1 parent 8d91911 commit 591378b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/line/multiple/demo/marker-active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fetch('https://gw.alipayobjects.com/os/bmw-prod/55424a73-7cb8-4f79-b60d-3ab627ac
'#FF99C3',
];

const container = document.getElementById('container');
const container = 'container';
const containerBox = container.getBoundingClientRect();
const series = uniq(data.map((d) => d.category));
const markerSize = 6;
Expand Down
2 changes: 1 addition & 1 deletion examples/pie/basic/demo/custom-label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const data = [
{ sex: '女', sold: 0.55 },
];

const piePlot = new Pie(document.getElementById('container'), {
const piePlot = new Pie('container', {
width: 400,
height: 300,
appendPadding: 10,
Expand Down

0 comments on commit 591378b

Please sign in to comment.