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 was using Charts 2.3.0 version for my stack bar chart view. But after I moved to Swift 3 and Chart 3.0, then my code started breaking. After fixing the number of problems, I am having one issues.
When I change x value in BarChartDataEntry from 1,2,3,4,5 to 1.1,1.2,1.3,1.4,1.5, stack bar chart giving me very wired behavior. Screen shot is attached. So my question is how do I make use BarChartDataEntry to use Double x value. It used to work fine in 2.3 version because XValues are string (Used to use: (xVals: [ "1.1", "1.2", "1.3", "1.4" ], dataSet: dataSet)).
In chart 3.0, we have a init with label for stacked bar entries but that label doesn't show anywhere.
I am ok with if following code works and label("1.1") shows on xAxis
let entry1 = BarChartDataEntry(x: 1, yValues: [ 3, 0, 0, 0], label: "1.1")
The text was updated successfully, but these errors were encountered:
Thank for the beautiful library!
I was using Charts 2.3.0 version for my stack bar chart view. But after I moved to Swift 3 and Chart 3.0, then my code started breaking. After fixing the number of problems, I am having one issues.
Code I am using
` func setChart() {
Output:
` func setChart() {
My issues is:
In chart 3.0, we have a init with label for stacked bar entries but that label doesn't show anywhere.
I am ok with if following code works and label("1.1") shows on xAxis
let entry1 = BarChartDataEntry(x: 1, yValues: [ 3, 0, 0, 0], label: "1.1")
The text was updated successfully, but these errors were encountered: