Skip to content
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 get the chart data entry points #1762

Closed
rameswarprasad opened this issue Nov 1, 2016 · 5 comments
Closed

How to get the chart data entry points #1762

rameswarprasad opened this issue Nov 1, 2016 · 5 comments

Comments

@rameswarprasad
Copy link

Hi Guys,

As per my needs I have drawn this custom balloon marker. However I don't know how to fetch the values to display besides actual labels. Can you help me please.

Note: I'm using release version 2.2.5

screen shot 2016-11-01 at 6 40 19 pm

I'm able to fetch one data entry value from the 'refreshContent' method using 'entry.value' property, However I need to fetch all the data entry points to display actuals besides the label texts, e.g

Normal 10
Warning 3
Critical 1

etc.

Let me know if you need code.

@pmairoldi
Copy link
Collaborator

Can't you just create your marker from the actual dataset values since you need them all?

@rameswarprasad
Copy link
Author

rameswarprasad commented Nov 1, 2016

Actually I'm not sure, where you're pointing at. I just tried to dig in to demo, attempted this way. Can you please point somewhere to look at then, I'll try to search though.. And thanks for the comment.

@pmairoldi
Copy link
Collaborator

You create a dataset to assign to your chart. From that dataset you could get all the values.

@rameswarprasad
Copy link
Author

Oh k got it. Thanks. I'm already having a dataset which I'm supplying to the line chart.

And I believe I can get the index from 'chartValueSelected' method. Is that what you're saying. correct me if I'm wrong.

@pmairoldi
Copy link
Collaborator

Ya that's what I'm saying. I don't remember the exact method name but you can get it somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants