-
-
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
PieChartView Can not highlight which i want to highlighted #3110
Comments
@liuxuan30 Can you show me how to highlight index greater than zero?I tried and it does not work. |
don't use coordinate if you are not familiar with. There are plenty of highlight methods, so use others. like |
@liuxuan30 I tried this |
I think you misunderstood? usually what you need to provide is data set index and entry index, etc, to only identify which entry in which data set to be used. DataIndex is only used in combined chart, in pie chart, dataSetIndex and dataIndex should always be 0 I suppose. |
BTW, Try debug ChartDemo - pie chart, it has all the steps how highlight are created and highlighted. You can add a breakpoint at |
@liuxuan30 You mean If i need to highlight one part of Piechart , i have to rewrite some method? If ChartDemo - pie chart has method ,can you tell me how to use it? I found highlight method contains x,y,even highlightValue(_ highlight: Highlight?) ,I googled bug found nothing useful,I suggest you add highlight method on PIeChartView. |
@liuxuan30 I have solved this problem by using dataSetIndex is zero, and X is the index, but i don not understand why this work, but it solved my problem.Thanks anyway!Here I was to suggest your team write right method in the Demo to help developer, like me,I think most of developer will meet this problem,and your team certainly hope to let Charts more better. |
BTW, pie chart by default nil-ed x axis. So pie chart does not have x axis Thanks for your input. We will improve that. Well, if we got enough complains about that :) |
Haha,I have seen some issues on GitHub,Really hope you improve that .Although it worked,i still worried some unknown question. If i rewrite this method, but you update some code ,you know, maybe |
I use PieChartView and want to highlighted one after init.I see lineChar can use
[self.chartView highlightValueWithX:0.0f y:0.0f dataSetIndex:3 callDelegate:NO];
and I test in piechart ,because piechart don't have an x and y,so,I give x and y 0.0f,and give SetIndex the index in the array, but it does not work except index=0,i want to know how to highlighted some one i wanted in piechart.Thankyou!
Expect your reply!
The text was updated successfully, but these errors were encountered: