ChartsOrg / ChartsOrg/Charts

How to draw value for just the selected value?

Open
#3,356 4 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

By default, I hide the y values from the data set.

When selecting a data point in the graph I can detect the point highlighted via the delegate.

```
func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) {
chartView.data?.setDrawValues(true)
}
```

From the delegate, I display all the values from the data set. Is there a way to only display the values for the selected point? I peaked into the documentation and could not seem to find it...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.