You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ℹ set "noDataText" to empty String, to remove "No chart data available."
What did you expect to happen?
ℹ When my chart data is empty "No chart data available." should be gone
What happened instead?
ℹ "No chart data available." still displayed even my chart data is empty or nil
Charts Environment
Charts version/Branch/Commit Number: 3.1.1 Xcode version: 9.3 Swift version: 4.1 Platform(s) running Charts: iOS macOS version running Xcode:
Demo Project
func initChart() {
// prepare chart data container
let data = LineChartData()
// configure linechart
self.chartView.noDataText = "" // this should be remove "No chart data available."
self.chartView.scaleYEnabled = false
self.chartView.scaleXEnabled = false
self.chartView.pinchZoomEnabled = false
self.chartView.doubleTapToZoomEnabled = false
self.chartView.dragEnabled = false
self.chartView.legend.enabled = false
self.chartView.isUserInteractionEnabled = false
self.chartView.fitScreen()
// add data set
data.addDataSet(EMPTY_DATA)
// set chart view data
self.chartView.data = data
}
Any help would be appreciated,
Thank you
The text was updated successfully, but these errors were encountered:
This lead me in the right direction. For others where they add the chart as a class on a view from the interface and make it an outlet, the value needs to be set in the viewDidLoad.
What did you do?
ℹ set "noDataText" to empty String, to remove "No chart data available."
What did you expect to happen?
ℹ When my chart data is empty "No chart data available." should be gone
What happened instead?
ℹ "No chart data available." still displayed even my chart data is empty or nil
Charts Environment
Charts version/Branch/Commit Number: 3.1.1
Xcode version: 9.3
Swift version: 4.1
Platform(s) running Charts: iOS
macOS version running Xcode:
Demo Project
Any help would be appreciated,
Thank you
The text was updated successfully, but these errors were encountered: