簡體   English   中英

如何修復圖表中LegendBox的position?

[英]How to fix the position of LegendBox in the chart?

我正在使用 LightningChartJS 創建圖表。 目前圖例框的position可以通過拖動來改變。 如何修復圖例框的 position?


const legend = chart.addLegendBox()
.setOrigin(UIOrigins.RightTop)
.setPosition({ x: 90, y: 90 })
.setMargin({ left: 10, right: 10, top: 10, bottom: 10 })
legend.add(chart)

拖動可以禁用

legend.setDraggingMode( UIDraggingModes.notDraggable )

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM