简体   繁体   中英

How to set a title for X-axis and Y-axis in line chart using Charts Framework in iOS?

I am configuring Line Chart using Charts framework. I have done my research but couldn't find relevant information as to how to set the title for X and Y axes(marked by red rectangle) as shown in the attached image.

Chart Example

I think there should be something like this code:

let chartDataSet = BarChartDataSet(values: dataEntries, label: "Visitor count")

The "label" parameter is the title.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM