[ad_1]
I’m attempting to render a bar chart utilizing a local 3D Chart mannequin from Actuality Composer in my iOS app.
Altering its values by way of CSV recordsdata by use of the “Import” command contained in the Actuality Composer app is feasible, nonetheless I need to do that by way of code with the values obtained from a HTTP Request.
For this to be attainable, is it mandatory to save lots of the obtained values in a CSV file earlier than importing or can I instantly change them? And thru what perform ought to I method this? Wouldn’t it be attainable to vary and conceal a person bar as nicely?
At the moment my code appears to be like like this:
let busScene = attempt! Expertise.loadBusScene()
networkManager.fetchBus { [weak self] (bus) in
DispatchQueue.essential.async {
var capability = bus.first?.Bus_Capacity
print("Capability: (capability ?? 0)")
let progressBar = busScene.progress
//caught on what to do right here to vary the values of the 3D chart
}
}
Additionally, I ought to notice that I do not know if this mannequin needs to be handled as a ModelEntity or only a plain Entity for this to work. Any assist with this might be a lot appreciated.
[ad_2]
