-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Tooltip - access to data #1028
Comments
If you're talking about the other members your "row" may have for extra info on the tooltip, this "metadata" is in |
I tried to include the original data for each new tooltip in the development branch... which specific chart isn't doing that? Did you do a console.log() of data inside the contentGenerator to verify that the data wasn't within the object anywhere? |
Hi @liquidpele, thanks for all the hard work! Using the stackedAreaChart. Data I get:
A dataset's value object looks more like this (for the last of the three above):
This is in nv.version = "1.7.1" (although through Bower/RailsAssets it's 1.8.0.alpha). |
Bump |
Can you post your best attempt at chart code and a mockup of what you want? |
Hi, I am seeing the same issue here in v1.8.1 for the MultiBarHorizontalChart: Here is an example of the data row being passed into the chart:
But when we use the contentGenerator function: chart.tooltip.contentGenerator(function (obj) { the obj parameters look like this:
It's missing a couple of the parameters for metadata (metricType and numberFormat) that we use to format the tooltip number value. These used to be available in v1.7.1 in the chart.tooltipContentGenerator function: .tooltipContent(function (key, x, y, e, graph) { in the e parameter, it would contain all the extra metadata. Anyone have any other ideas about how to pass in some data to the tooltip formatter? |
+1 |
1 similar comment
+1 |
I just came across the same requirement, unfortunately there is still no clear solution yet. |
Awesome work guys btw. Looking to change our tooltips to make use of additional data in the dataset that we are graphing (the bits that aren't being graphed that is).
The "data" item here isn't referencing back to the originating data "row" from the dataset being used. This means that any additional metadata isn't available. Any thoughts on why it shouldn't be? (We would dearly love it to be, for in our case it provides information to our users on data quality).
The text was updated successfully, but these errors were encountered: