[英]Is it possible to always set 0 in the center of Charts's Y-axis with swift charts lib?
計算圖表數據集中 Y 軸上的最大數字。
let maxValue = max(dataSet)
chart.setChartMinMaxYValues(chartYMin: -(maxValue), chartYMax: maxValue)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.