Make it possible to hide data from a chart without unloading
See original GitHub issueIs it possible to simply stop data from loading in the chart without actually unloading the data itself from the data object. I’m toying with a use case where related data could be included in CSV, but only displayed in the tooltip (for example, margins of error).
If it were possible to just stop the visual for a particular data id from loading without removing the data altogether (through unload) then I could access the data in the tooltip contents without referencing another source.
Does that make sense. So the feature I’m looking for is something like
hide({ids: ''})
instead of an
unload({ids: ''})
Is this currently possible, and I’m just missing it? I understand this may be an edge use case, but being able to pass in data and not load it into a chart would allow easier access to data for cases where someone wants to use and manipulate that data in non-chart elements.
Issue Analytics
- State:
- Created 9 years ago
- Comments:14 (4 by maintainers)
Top GitHub Comments
Thanks that worked for me too, however I can seem to find a way to access the hidden fields from the tooltip.contents callback. It seems that the data parameter only include non-hidden fields. Am I missing something?
No worries, thanks for putting me on the right track. I may have found a bug or it could be user error 😄
I have this right after I generate my chart
And I get this:
With this error and stacktrace in the debugger:
I’m using the latest c3 0.4.3 release