Comments (5)
tickCount 有效,但是你第一张图的 X 是离散数据,如果你希望转换成连续数据,可以如下:
chart.line().data().encode('x', d => new Date(d.date))
rotate 不恢复确实是一个问题,可以排查一下。
from g2.
可以通过 labelFilter 过滤一些:
chart.interval().axis('x', { labelFilter: d => ... })
from g2.
可以通过labelFilter过滤一些:
chart.interval().axis('x', { labelFilter: d => ... })
不支持4.x中的tickcount这种设置吗。而且还有个bug是,在最开始刻度的label是竖向的后,后面数据就算再少刻度的label方向也不会改变,5.x的官方demo可以复现,拖动外层容易宽度即可,测试了下4.x是没有这种问题的
from g2.
tickCount 有效,但是你第一张图的 X 是离散数据,如果你希望转换成连续数据,可以如下:
chart.line().data().encode('x', d => new Date(d.date))rotate 不恢复确实是一个问题,可以排查一下。
服务器返回到数据就是字符串形式的时间,而且我们业务环境还要按照月 ,天,周进行聚合展示,在不同的筛选情况下X轴下面展示的label也应该不一样,能不能像4.x一样由G2内部自行判断,当刻度过多的时候根据外层容器宽度取一个最大值
from g2.
有人解决了吗, 看官网例子x轴标签都是可以自动省略的, 看了一天的文档问了AI都没办法解决, 官网上面的数据都是请求的,把实际请求地址改为真实数据后,数据一多x轴时间就旋转了90度,太反人类了吧, 还不支持自定义显示个数 全是bug
from g2.
Related Issues (20)
- 饼图的 labelTransform 需要同时处理重合和超出视口的情况
- 【G2 V5】【条形图、柱状图】配置scrollbar后,来回拖动滚动条时,会经常出现坐标轴刻度值丢失的情况
- 功能需求 HOT 3
- 柱状图转换坐标系后如何让标签文字也进行旋转 HOT 1
- 选中区域太小,怎么让背景也能被hover或者选中? HOT 1
- 【G2 多轴图】多个柱形+一个折线共用横坐标轴,tooltip框内容显示错误 HOT 4
- G2 分类图例支持聚焦能力
- 多view场景tooltip crosshairs展示不全
- G2 官网增加 demo 案例 HOT 4
- G2 圈选数据重新渲染 brush 交互
- 双y轴图表,在点击legend进行交互时会导致渲染异常
- [面积图] 设置 scale/y/domainMin 后 面积溢出到横坐标下方 HOT 1
- legend点击下方图例时图标和后面的关联文本的方法分开
- 有滚动条的柱状图在浏览器尺寸变化后,会导致部分数据未渲染
- 雷达图:给了俩组数据,图例也出来了,可是图只有一个。并且,图例点击关闭一个,另一个显示,都不关闭,只显示一个 HOT 2
- 阶梯折线图转换坐标系后,线条少了一截
- 移动端手指在图表上滑动时,页面无法滚动
- 在S2单元格中绘制G2折线图,当单元格高度偏小时y坐标轴反转
- 饼图中心文本支持 html
- g2渲染**地图 HOT 5
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.