如何指定折线图x轴的顺序
#2887
Replies: 1 comment
-
x 轴默认是按原始数据 index 排序的,排序数据即可。 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
问题
翻看了文档,不知道该如何指定x轴的顺序。
data里x轴是176,175,174,...1,0
config里无额外配置,
画出来的图是0,1,...,175,176的正序,如何调整成逆序
update
我尝试了如下配置
从效果上可以实现了想要的,但是有点蠢。这个反序只能自己指定domain和tick来配置吗?
Beta Was this translation helpful? Give feedback.
All reactions