-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use IValueFormatter in stacked bar chart #2916
Comments
how many data sets you have in the first place.. a stacked bar should only have one data set for sure.. Why don't you check stacked bar chart in ChartsDemo? It's already a good demo |
two things:
|
That's right. But think about situation in this function, when value will be same how can I identify if the value is for 1st stack or 2nd stack. something like |
|
I also encountered this problem, how did you solve it in the end? |
Hi there
I am trying to use IValueFormatter in stacked bar chart but dataSetIndex is always retuning 0. I want to display different text for different stacked bar. I have max 2 stacked bar. Value is coming properly but I want to display text on it.
`public func stringForValue(_ value: Double, entry: ChartDataEntry, dataSetIndex: Int, viewPortHandler: ViewPortHandler?) -> String {
Any help.
Thanks
The text was updated successfully, but these errors were encountered: