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
I am trying to follow this example #2859 (comment)
using xcode 12 and Charts 3.6.0
I get two issues: set1 = LineChartDataSet(values: yEntries, label: "DataSet 1") is giving me Incorrect argument label in call (have 'values:label:', expected 'entries:label:')
So I guess it should be set1 = LineChartDataSet(entries: yEntries, label: "DataSet 1") now.
So far so good.
But then at
`var set1 = LineChartDataSet()
set1 = (chartView.data?.dataSets[0] as? LineChartDataSet)!
Hi,
I am trying to follow this example
#2859 (comment)
using xcode 12 and Charts 3.6.0
I get two issues:
set1 = LineChartDataSet(values: yEntries, label: "DataSet 1")
is giving meIncorrect argument label in call (have 'values:label:', expected 'entries:label:')
So I guess it should be
set1 = LineChartDataSet(entries: yEntries, label: "DataSet 1")
now.So far so good.
But then at
`var set1 = LineChartDataSet()
set1 = (chartView.data?.dataSets[0] as? LineChartDataSet)!
I get for
set1.values = yEntries
Cannot assign to property: 'values' is a get-only property
and I am not able to figure out how to fix this. Any ideas?
Maybe also other people trying that example will run into this issue.
Thanks
The text was updated successfully, but these errors were encountered: