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
Hi, I'm implementing a HorizontalBarChartView but when I use currency values it does not display the description in front of the bar, when I use values of other types it works normally, does anyone know what might be happening?
What did you expect to happen?
Should display the description in front of the bar
var color: UIColor
var title: String
var type: String
var data = [ChartData]()
init(json: JSON, color: UIColor) {
self.color = color
self.title = json["title"].stringValue
self.type = json["type"].stringValue
for dataJson in json["data"].arrayValue.reversed() {
let chartData = ChartData(json: dataJson)
data.append(chartData)
}
}
}
struct ChartData {
var label: String
var value: Double
var formattedValue: String
init(json: JSON) {
self.label = json["label"].stringValue
self.value = json["value"].doubleValue
self.formattedValue = json["formattedValue"].stringValue
}
}
`
The text was updated successfully, but these errors were encountered:
What did you do?
Hi, I'm implementing a HorizontalBarChartView but when I use currency values it does not display the description in front of the bar, when I use values of other types it works normally, does anyone know what might be happening?
What did you expect to happen?
Should display the description in front of the bar
What happened instead?
Does not display description on front of bar
Charts Environment
**Charts version/Branch/Commit Number: 3.2.1
**Xcode version: 10.1
**Swift version: 4.0
**Platform(s) running Charts: iOS 12.1
**macOS version running Xcode: 10.14.1
Demo Project
`class ChartView: UIView, ChartViewDelegate, IAxisValueFormatter {
}
class BaseValueFormatter: NSObject, IValueFormatter {
}
open class OtherValueFormatter: NSObject, IAxisValueFormatter, IValueFormatter {
}
`
`class Chart {
}
struct ChartData {
}
`
The text was updated successfully, but these errors were encountered: