Yassine DEHHANI
Yassine DEHHANI
TSDThe Swift Den
Created by Yassine DEHHANI on 8/7/2023 in #swift-development
Issue Displaying Charts with CustomView
Hello! I'm trying to display some 6 different charts on my MacOs application, but i'm struggling setting this up. I have a 'ChartsViewsController.swift' file in which I have those variables :
// Arrays to store the acceleration and angular rate data for each axis
typealias Model = (dataValue: Double, time: String)
var accelerationXArray: [Model] = []
var accelerationYArray: [Model] = []
var accelerationZArray: [Model] = []
var angularRateXArray: [Model] = []
var angularRateYArray: [Model] = []
var angularRateZArray: [Model] = []
// Arrays to store the acceleration and angular rate data for each axis
typealias Model = (dataValue: Double, time: String)
var accelerationXArray: [Model] = []
var accelerationYArray: [Model] = []
var accelerationZArray: [Model] = []
var angularRateXArray: [Model] = []
var angularRateYArray: [Model] = []
var angularRateZArray: [Model] = []
When I click a button on the app the variables starts filling up with data (otherwise they would be empty) My objective is to display the empty charts when i launch the Application, and fill them up with LineMarks constantly as the variables fills up. Coudls someone help me please ?
1 replies