-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
What did you do?
I updated the Charts library from 3.2.1 to 3.2.2.
What did you expect to happen?
When a line chart has just "one" entry data, the chart shows a circle to indicate the data.
v3.2.1 (with highlight / It draws a circle. correct.)
v3.2.1 (without highlight / It draws a circle. correct.)
What happened instead?
No circle was drawn on the chart.
*chartDataSet.drawCirclesEnabled is always set as TRUE.
The problem happens when there is only "one" entry.
(But if there are more than two entries, it works fine.)
v3.2.2 (with highlight / No circle was drawn. wrong)
v3.2.2 (without highlight / No circle was drawn. wrong)
*When I switch it back to the version 3.2.1, it draws a circle (expected behavior).
Charts Environment
Charts version/Branch/Commit Number: 3.2.2 (latest version)
Xcode version: 10.1 (latest version)
Swift version: 4.2.1 (latest version)
Platform(s) running Charts: iOS
macOS version running Xcode: Mojave 10.14.3 (latest version)
Sample Code
let chartDataSet = LineChartDataSet(values: dataEntries, label: nil)
chartDataSet.setCircleColor(.blue)
chartDataSet.drawCirclesEnabled = true
chartDataSet.circleRadius = 1.0
lineChartView.data = LineChartData(dataSet: chartDataSet)FYI
The issues/fixes below may be related to this problem.
#3798
#3164
devios1 and StefaniOSApps
Metadata
Metadata
Assignees
Labels
No labels



