Skip to content

Commit

Permalink
fix(demo): demo 实例容器自适应,不需要加宽高 否则影响动画效果 (#2193)
Browse files Browse the repository at this point in the history
- 玉珏图默认将动画开启
  • Loading branch information
visiky committed Jan 10, 2021
1 parent cbd087a commit cf8b4c1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions examples/more-plots/radial-bar/demo/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const data = [
];

const bar = new RadialBar('container', {
width: 400,
height: 300,
data,
xField: 'name',
yField: 'star',
Expand Down
2 changes: 0 additions & 2 deletions examples/more-plots/radial-bar/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const data = [
];

const bar = new RadialBar('container', {
width: 400,
height: 300,
data,
xField: 'name',
yField: 'star',
Expand Down
2 changes: 0 additions & 2 deletions examples/more-plots/radial-bar/demo/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const data = [
];

const bar = new RadialBar('container', {
width: 400,
height: 300,
data,
xField: 'name',
yField: 'star',
Expand Down
2 changes: 0 additions & 2 deletions examples/more-plots/radial-bar/demo/line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const data = [
];

const bar = new RadialBar('container', {
width: 400,
height: 300,
data,
xField: 'term',
yField: 'count',
Expand Down
2 changes: 0 additions & 2 deletions examples/more-plots/radial-bar/demo/round-corner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const data = [
];

const bar = new RadialBar('container', {
width: 400,
height: 300,
data,
xField: 'name',
yField: 'star',
Expand Down
2 changes: 0 additions & 2 deletions src/plots/radial-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export class RadialBar extends Plot<RadialBarOptions> {
line: null,
},
maxAngle: 240,
// 默认先关闭动画
animation: false,
});
}

Expand Down

0 comments on commit cf8b4c1

Please sign in to comment.