Created a custom value formatter for x-axis in a multiline chart.
What did you expect to happen?
I expected the identical x-axis labels on the x-axis to be combined if two or more lines shared the same label, resulting in non-duplicate, chronological labels. i.e. 08/24, 08/25, 0/8/26, 08/27
What happened instead?
Each data set has its own x-axis labels independently of other data sets, resulting in duplicate labels.
Charts Environment
Charts version/Branch/Commit Number: 3.5.0
Xcode version: 11.5
Swift version: 5.x
Platform(s) running Charts: iOS
macOS version running Xcode: 10.15.6
What did you do?
Created a custom value formatter for x-axis in a multiline chart.
What did you expect to happen?
I expected the identical x-axis labels on the x-axis to be combined if two or more lines shared the same label, resulting in non-duplicate, chronological labels. i.e. 08/24, 08/25, 0/8/26, 08/27
What happened instead?
Each data set has its own x-axis labels independently of other data sets, resulting in duplicate labels.
Charts Environment
Charts version/Branch/Commit Number: 3.5.0 Xcode version: 11.5 Swift version: 5.x Platform(s) running Charts: iOS macOS version running Xcode: 10.15.6
Demo Project
Chart setup
Value Formatter
When I log
dateFormatter.string(from: date)
, it shows two "8/24"'s and two "8/25"'s.If I do without the custom value formatter, the labels on the x-axis are non-duplicate: