question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

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

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:25 (2 by maintainers)

github_iconTop GitHub Comments

20reactions
marjan-georgievcommented, Aug 19, 2019

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 data. Does that make sense?

Update 19 August 2019

This feature has been implemented and available since version 12.0.0. Instead of data, the property is called extra The format now looks like this:

{
  'name': 'Assurance (Prime et Fond de garantie)',
  'value': 1537.95,
  'extra' : {
    'filter': 'G33'
  }
}
17reactions
roughbits01commented, Nov 15, 2018

Please add this my boss is gonna kill me 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply data validation to cells - Microsoft Support
Try it! Select the cell(s) you want to create a rule for. Select Data >Data Validation. Data Validation. On the Settings tab, under...
Read more >
Allow Other Entries With Excel Drop Down List
If you want to allow other entries with Excel drop down list, follow the steps below, to enable that option.
Read more >
Enable Conditional Data Entry in Excel using Data Validation
Data Validation enables you allow conditional data entry in excel. In this tutorial, you will learn how to use it for data entry...
Read more >
Excel Data Validation - Limit What a User Can Enter into a Cell
Data Validation is a tool in Excel that you can use to limit what a user can enter into ... The different types...
Read more >
Excel drop down list: how to create, edit, copy and remove
Open the Data Validation dialog window. Select List from the Allow drop-down box. In the new Source box, enter the formula referring to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found