ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.43k stars 5.97k forks source link

HighLight bar disable unselected #5157

Closed UnKnown-CZQ closed 3 months ago

UnKnown-CZQ commented 3 months ago

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

ℹ Please replace this with what you did.
I have selected the data of a certain bar, and I don’t want to cancel it by clicking it again unless I click another bar.

ℹ Please replace this with what you expected to happen.

In the case of highlighting, is it possible to prevent clicking again to cancel the highlighting?

ℹ Please replace this with of what happened instead.

DGCharts Environment

WX20240319-002053@2x For example, in this picture, I selected the ninth bar, and then I hope that clicking on the ninth bar will no longer cancel the highlight state unless another bar is clicked.

Thanks!

DGCharts version/Branch/Commit Number: 5.1.0 Xcode version: Swift version:5.5 Platform(s) running DGCharts: macOS version running Xcode:

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.