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
Allow other data #506
Comments
I was thinking about putting all extra data that we want to pass in click/tooltip events in a separate property. So the data would look like this: {
'name': 'Carburant Pétrolier VE',
'value': 2306.18,
'data' : {
'filter': 'G33'
},
...
},
{
'name': 'Assurance (Prime et Fond de garantie)',
'value': 1537.95,
'data' : {
'filter': 'G33'
},
...
} This way, everything you would like to pass in those events (in addition to the name and value properties) should be put under Update 19 August 2019This feature has been implemented and available since version 12.0.0. Instead of
|
Yes that make sense, can't wait for it . |
Are there any news about the feature? I'm really looking forward to it, since this would make everything so much easier. |
Bump, really need this feature. Hope it's still in the works! |
This is REALLY hacky and requires jquery(not sure what else to use but their index() method) but I got to my meta data in the following fashion:
|
I agree, this feature is necessary for creating more complex interactive charts |
Looks like for the simpler charts like bar charts and pie charts, you can add an |
I'm looking for an thanks for this awesome lib |
This would be really sweet and enable some cool use cases. Think for example about a heat-map of events where simply hovering/clicking any given minute/hour/day/week gives you a tooltip with more details (what event types caused the hotspot? did they have a common source? etc.) – see something extraordinary? -> knowing what happened is just one click away. |
It is not working on line chart @marjan-georgiev |
Bump, any news about this issue? Would be great if this is added. |
Please add this my boss is gonna kill me :D |
Bump, yes please! |
Bump please, yes! |
Another bump, really necessary feature, yes please. |
+1 |
2 similar comments
+1 |
+1 |
I just wanted to throw in my vote that this gets added to the Tree chart, as well. Or possibly at least let Tree chart support the 'extra' property like Bar and Pie charts, do. |
+1 |
Would definitely love this as well 🗡 |
It's very disappointing that this is never addressed ... |
This has been added and released in v12.0.0 via #1185 I missed closing this ticket, my bad. The property is called
You can try it on the demo page by clicking any of the bars on the bar chart. |
Thank you for the information, I checked the demo page but looks like the extra field only available for bar chart and pie chart there, in my line chart it doesn't work, could you please confirm if it's there for line chart?
|
How do I access this extra value? |
I'm submitting a ... (check one with "x")
Current behavior
Hi I have this as data in a pie chart :
{
'name': 'Carburant Pétrolier VE',
'value': 2306.18,
'filter': 'G33'
},
{
'name': 'Assurance (Prime et Fond de garantie)',
'value': 1537.95,
'filter': 'G69'
}
and on select when i get the data selected it returns only name and value NOT filter, is there a way to get the filter.
Expected behavior
I should get name and value and filter
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
ngx-charts version: x.x.x
6.0.0
Angular version: 2.x.x
The text was updated successfully, but these errors were encountered: