简体   繁体   English

如何使用iOS中的Charts Framework在折线图中为X轴和Y轴设置标题?

[英]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. 我正在使用Charts框架配置折线图。 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. 我已经进行了研究,但是找不到有关如何设置X和Y轴标题(由红色矩形标记)的相关信息,如随附的图像所示。

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. “标签”参数是标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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