F2
F2 copied to clipboard
请问折线图Y轴可不可以放到右侧
https://f2.antv.vision/zh/docs/api/chart/axis
position | String | 坐标轴显示位置配置,x 轴默认位于底部 'bottom',y 轴可设置 position 为 'left'、'right'
chart.axis('field', { position: 'right' })
我有个相似的问题: x轴可不可以放到顶部? 这个文档的表述也很让人迷惑,「x 轴默认位于底部 'bottom'」,默认为bottom,那么有没有可配置选项呢?从字面上理解是有的吧?但是可配置选项是什么呢? 设为'top'直接报错了