Comments (2)
`import { Chart } from '@antv/g2';
const data = [
{ letter: 'A', frequency: 0.08167 },
{ letter: 'B-a12121212s', frequency: 0.01492 },
{ letter: 'C-', frequency: 0.02782 },
];
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart.interval().data(data).encode('x', 'letter').encode('y', 'frequency').axis('x',{
transform:[],
labelAutoRotate:{
optionalAngles:[45],
recoverWhenFailed:false
}
});
chart.render();
`
from g2.
`import { Chart } from '@antv/g2';
const data = [
{ letter: 'A', frequency: 0.08167 },
{ letter: 'B-a12121212s', frequency: 0.01492 },
{ letter: 'C-', frequency: 0.02782 },
];
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart.interval().data(data).encode('x', 'letter').encode('y', 'frequency').axis('x',{
transform:[],
labelAutoRotate:{
optionalAngles:[45],
recoverWhenFailed:false
}
});
chart.render();
`
from g2.
Related Issues (20)
- 如何根据画布上的位置Point(x,y)信息获取对应的数据
- 饼图动画优化
- axis 的 label WrapOverlapCfg 换行后第二行的内容不显示 HOT 1
- tooltip 是否支持自定义 marker?是否直接使用 legend 中的 itemMarker ? HOT 1
- 图例过长会导致图表UI显示有问题, 分页器也看不见了 HOT 2
- 如何使用 V5 实现V4中的分组层叠柱状图 HOT 1
- 当使用缩略轴(slider)并进行拖动时,图例(legend)的位置会发生偏移,甚至消失
- [v5] 如何实现 axis label 内容过长时, 换行 + 超出隐藏显示省略号 + tooltip显示完整内容 HOT 1
- treemap drilldown not working
- 双轴柱状图下,hover出现tooltips,会有部份偏移 HOT 1
- 官网示例 Spec 模式支持编辑
- 官网示例 API 和 Spec 互转
- Data 支持语法糖 HOT 1
- Theta 坐标系支持指定坐标中心以及能够限定角度
- 螺旋坐标系
- 日历色块图
- 图例聚焦能力
- 分面
- 分组柱形图表间距怎么调整
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 g2.