Friday, August 19, 2022
HomeiOS Developmentios - Is there a approach to make Ok-LINE learn the worth...

ios – Is there a approach to make Ok-LINE learn the worth of FIREBASE?


The way to make the worth in DATA learn the worth in FIREBASE?

and incremented based on the timestamp message

 AASeriesElement()
                    .identify("东京")
                    .knowledge([7.0, 6.9, 9.5, 14.5, 18.2, 21.5])
                    .toDic()!,
                AASeriesElement()
                    .identify("纽约")
                    .knowledge([0.2, 0.8, 5.7, 11.3, 17.0, 22.0])
                    .toDic()!,
                AASeriesElement()
                    .identify("柏林")
                    .knowledge([0.9, 0.6, 3.5, 8.4, 13.5, 17.0])
                    .toDic()!])

Right here is the entire code

import UIKit
 
class ViewController: UIViewController {
 
    override func viewDidLoad() {
        tremendous.viewDidLoad()
         
        // 初始化图表视图控件
        let chartWidth  = self.view.body.dimension.width
        let chartHeight = self.view.body.dimension.top - 100
        let aaChartView = AAChartView()
        aaChartView.body = CGRect(x:0, y:0, width:chartWidth, top:chartHeight)
        self.view.addSubview(aaChartView)
         
        // 初始化图表模型
        let chartModel = AAChartModel()
            .chartType(.column)//图表类型
            .title("城市天气变化")//图表主标题
            .subtitle("2020年09月18日")//图表副标题
            .inverted(false)//是否翻转图形
            .yAxisTitle("摄氏度")// Y 轴标题
            .legendEnabled(true)//是否启用图表的图例(图表底部的可点击的小圆点)
            .tooltipValueSuffix("摄氏度")//浮动提示框单位后缀
            .classes(["一月", "二月", "三月", "四月", "五月", "六月"])
            .colorsTheme(["#fe117c","#ffc069","#06caf4"])//主题颜色数组
            .collection([
                AASeriesElement()
                    .name("东京")
                    .data([7.0, 6.9, 9.5, 14.5, 18.2, 21.5])
                    .toDic()!,
                AASeriesElement()
                    .identify("纽约")
                    .knowledge([0.2, 0.8, 5.7, 11.3, 17.0, 22.0])
                    .toDic()!,
                AASeriesElement()
                    .identify("柏林")
                    .knowledge([0.9, 0.6, 3.5, 8.4, 13.5, 17.0])
                    .toDic()!])
         
        // 图表视图对象调用图表模型对象,绘制最终图形
        aaChartView.aa_drawChartWithChartModel(chartModel)
    }
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments