Skip to content

Commit

Permalink
fix: tiny chart auto fit (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfu1 authored Apr 25, 2024
1 parent 909b66c commit 790b637
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/plots/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.2.1

`2024-04-25`

- 🐞 修复 Tiny 组件默认不能自适应容器大小

## 2.2.0

`2024-04-19`
Expand Down
2 changes: 1 addition & 1 deletion packages/plots/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/plots",
"version": "2.2.0",
"version": "2.2.1",
"description": "G2Plot Statistical chart",
"bugs": {
"url": "https://github.com/ant-design/ant-design-charts/issues"
Expand Down
1 change: 0 additions & 1 deletion packages/plots/src/core/plots/tiny-area/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class TinyArea extends Plot<TinyAreaOptions> {
enter: { type: 'growInX', duration: 500 },
},
children: [{ type: 'area', axis: false }],
autoFit: false,
padding: 0,
margin: 0,
tooltip: false,
Expand Down
1 change: 0 additions & 1 deletion packages/plots/src/core/plots/tiny-column/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class TinyColumn extends Plot<TinyColumnOptions> {
return {
type: 'view',
children: [{ type: 'interval', axis: false }],
autoFit: false,
padding: 0,
margin: 0,
tooltip: false,
Expand Down
1 change: 0 additions & 1 deletion packages/plots/src/core/plots/tiny-line/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class TinyLine extends Plot<TinyLineOptions> {
return {
type: 'view',
children: [{ type: 'line', axis: false }],
autoFit: false,
animate: {
enter: { type: 'growInX', duration: 500 },
},
Expand Down
1 change: 0 additions & 1 deletion packages/plots/src/core/plots/tiny-progress/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class TinyProgress extends Plot<TinyProgressOptions> {
return {
type: 'view',
data: [],
autoFit: false,
margin: 0,
padding: 0,
tooltip: false,
Expand Down
1 change: 0 additions & 1 deletion packages/plots/src/core/plots/tiny-ring/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class TinyRing extends Plot<TinyRingOptions> {
return {
type: 'view',
data: [],
autoFit: false,
margin: 0,
padding: 0,
coordinate: { type: 'theta' },
Expand Down

0 comments on commit 790b637

Please sign in to comment.