Passing Objects to Datasets?
See original GitHub issueI have a single dataset of events (objects) that I want to populate in a line chart. Here’s an example event:
{
y: 25,
name: "Test Event",
date: "2015-06-30"
}
All of these events are members of a single data set (a single line). Is there a way to pass the data from these objects to a custom tooltip so that when I hover over a point (an event), I can see the metadata (perhaps in the tooltip template)?
All the samples I’ve seen show the data to be an array of integers only, with no access to any other metadata.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
dataset.value returning "[object Object]" rather than the actual ...
As part of the options, I need to pass properties of these objects as data-values. I can build the select fine, but cannot...
Read more >Passing Data Between Objects in an Application
This solves the problem of passing back data returned from a function that has more than one return type. This approach is simpler...
Read more >Passing Parameters to the Source Dataset - RAD Studio
Client datasets can pass parameters to the source dataset to specify what data they want provided in the data packets it sends. These...
Read more >Passing dataset object to openlightbox function - Wix.com
Hi, I can pass a string or similar objects to the function via data, but I can't pass dataset object. I have a...
Read more >passing data sets between objects | PC Review
What is the best way to pass a data set between objects? I have a custom control which will depend on a dataset...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kurti-vdb I’m not sure why it’s not working for you - seems to work for me! I’ve added an answer at your Stack Overflow question.
For others coming here, a clarification about that SO question: that answer is not overriding
toString
because Chart.js will use the value of the fieldy
as the value to plot, so this:is equivalent to: