Comments (3)
先手动调用 fitCenter跳过一下
onReady: (graph) => {
graphRef = graph;
}
// When needed
graphRef.fitCenter()
from ant-design-charts.
graphRef.fitCenter is not a function.
是我哪里写的有问题嘛
https://codesandbox.io/s/condescending-frog-w8qtlp?file=/App.tsx
from ant-design-charts.
你提供的链接打开空白,打印grapRef 看看,记得结合 React.useRef() 使用
from ant-design-charts.
Related Issues (20)
- 👑 [需求] 文档十分难读懂,对开发者极不友好~
- 🐛[BUG]Error: Unknown Component: shape.inner HOT 1
- antdesign charts使用地图组件为什么背景地图没有出来?👑 [需求] HOT 1
- 🐛[BUG] HOT 1
- 🧐[问题]折线图配置: scale-x-range HOT 5
- 🧐[问题]折线图配置: scale-x-range HOT 1
- 需要 x 是连续类型、date类型。 HOT 1
- 1
- 生成得图表留白地方过多怎么处理
- 🧐[问题]分组柱状图 xField维度下 有不同分组数据,如何调整xField维度下只展示自己范围内的数据
- 🐛[BUG] 雷达图拖动窗口后显示异常
- 🐛[BUG] colorField 中的项目如果包含“Ta”字符则会被缩略
- v1中的MIX可实现上下布局,v2中如何实现?
- 🧐[问题] 矩阵树图 Treemap 无法使用 promise
- 🧐[问题] 使用legend里面的marker 不能改变形状
- 🧐[问题]通过设置scale.y.domain的第一个数比第二个数大,实现条形图反向(从右往左),是支持的用法吗?
- 🧐[问题] How to set separate sizes of ranges, measures, targets of Bullet chart? HOT 1
- 🐛[BUG]矩阵树图的重新渲染报错 HOT 1
- 🐛[BUG] 如何对legend以及tooltip 进行自定义排序
- 🧐[问题] 多图层图表如何给不同的图表设置legend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-design-charts.