V5时间比例尺如何设置 #5116
V5时间比例尺如何设置
#5116
Replies: 3 comments 1 reply
-
v4按照文档进行,一切都很顺利,v5对新手太不友好了。。。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
柱状图的 x 比例尺只能是 band 比例尺,不能是 time 比例尺。如果希望过滤一些 tick,可以设置坐标轴的 labelTransform。 chart.interval().axis('x', { labelTransform: [{type: 'hide'}]}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
等v5的文档出来优化后我再试试。暂时先用v4了。 thanks, anyway |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
新手使用v5版本的g2, 制作一个简单的柱状图,x 轴时间,y轴数量。
如何设置x轴的比例尺,默认有 100 个数据点,x 轴时间都挤在一起,没法看。
这应该是一个很简单的东西,奈何实验了很多次一直失败, 很是苦恼😖。只要设置了x轴的比例尺,就始终报错.
具体的版本
Beta Was this translation helpful? Give feedback.
All reactions