Comments (4)
下个版本支持。
from bizcharts.
@a12366456
position 字段是用来指定 geom x、y属性所绑定的数据句字段,即数据决定了空间位置,具体的空间位置是由 G2 自适应布局计算出来的。
目前支持 sale * year 这样的写法,下个版本会支持 ['sale', 'year'] 数组形式的写法,你说的回调函数是怎样的? 是想要根据特定数据去返回空间坐标?
from bizcharts.
在空间位置x,y需要由多个字段决定时,数据类似[{year:2017,moth:1,count:10}],我需要x由year和month共同决定,期待的写法position={['year*month', (year,month)=>{return year+"年"+month+"月";},
count
]}
from bizcharts.
@a12366456
你说的这种写法支持不了哦, 首先G2 就是不支持的,bizcharts 的层面无法支持这种定制。
你可以去 g2 提个 issue,看看他们支不支持。
from bizcharts.
Related Issues (20)
- 设置forceFit后canvas宽度为1px
- Tooltip marker配置类型不准确
- Tooltip报错
- Tooltip报错
- legend
- react18 严格模式下, 切换 图表类型 不渲染 HOT 1
- 带有label的条形图(BizCharts@4)数据紊乱,刷新会随机出现以下2种情况,label对应的会乱
- Changing Legend onChange does not update component (temp fix found) HOT 1
- onAnnotationClick在Annotation.Html下不生效 HOT 1
- The above error occurred in the <Chart3> component: HOT 1
- English documentation
- [Feature Request]气泡散点图支持双缩略轴
- 设置了父级元素的宽高,并且把autoFit设置为true,再设置图表的宽高还是有效 HOT 1
- DonutChart的onRingClick事件该如何触发
- react 兼容版本能提升至 17.+ 吗?做个多版本兼容行吗?
- 时间类型的x轴,刻度显示的值错误
- Interval组件动态修改adjust属性视图不更新
- v4版本的Legend如何实现基于html的自定义
- Issue with Chart Visualization in React/Next.js Project Using StrictMode HOT 1
- @antv/g2 已经发布了新的大版本v5,请问是否有支持的计划?
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 bizcharts.