F2 icon indicating copy to clipboard operation
F2 copied to clipboard

请问折线图Y轴可不可以放到右侧

Open wangzhenyuWZY opened this issue 4 years ago • 2 comments

wangzhenyuWZY avatar Oct 28 '20 06:10 wangzhenyuWZY

https://f2.antv.vision/zh/docs/api/chart/axis

position | String | 坐标轴显示位置配置,x 轴默认位于底部 'bottom',y 轴可设置 position 为 'left'、'right'

chart.axis('field', { position: 'right' })

934086372 avatar Oct 28 '20 13:10 934086372

我有个相似的问题: x轴可不可以放到顶部? 这个文档的表述也很让人迷惑,「x 轴默认位于底部 'bottom'」,默认为bottom,那么有没有可配置选项呢?从字面上理解是有的吧?但是可配置选项是什么呢? 设为'top'直接报错了

townechow avatar Mar 29 '21 11:03 townechow