Comments (6)
This will be partially addressed by fixing vega/vega-lite#508, but we should wait until we have layering support first.
from vega-tooltip.
One thing that we can do now is
- from the
item
parameter we get. Is there a way to know that the mark is a line, then we can drop quantitative values?
from vega-tooltip.
Partially fixed in PR #16, which only displays qualitative fields for line charts and area charts, and gives warnings in the console.
from vega-tooltip.
Hmm. If it is partially fixed and should be further fixed, I don't think we should close it.
from vega-tooltip.
Dropping quantitative fields does seem to solve the problem for the line_color
example we have above, but if the stocks.csv
data set contains some additional qualitative fields, shouldn't those fields be dropped too? An additional field's value will vary for a line/area mark, but before we add layering support, tooltip will only pick up one datum for a line/area mark, which may be inaccurate.
As a better partial fix, we may drop fields in the x and y channels and only show fields in the other encoding channels (typically color). In this way, if a qualitative field is not used for encoding, it will not show up in the tooltip.
I am writing down this thought for logging purpose. I know we will have layering really soon, so we may not even need to implement this "better partial fix" -- we may go straight into "using layering to properly show all fields" for line charts and area charts.
I wrote down these thoughts as comments in PR #16.
from vega-tooltip.
Close via #50
from vega-tooltip.
Related Issues (20)
- Can I specify the order of tooltip rows? HOT 2
- Vega-Tooltip, Title and Padding Update HOT 1
- When deploying from github actions, also deploy github pages HOT 1
- Simplified version import caused a breaking change HOT 4
- 0.24 throws an error (Te: invalid module) when loading it into Observable HOT 3
- Tooltip examples HOT 2
- Interactive tooltip HOT 2
- Tooltips not visible when browser is in fullscreen mode HOT 3
- Reduce flicker by continuing to display for a short while when no longer hovering HOT 6
- Tooltip is slow due to excessive DOM modification HOT 2
- [Tooltip] Left-align field name in tooltips HOT 5
- Title/image special handling shouldn't be on by default (or at least should be documented and have a way to disable) HOT 6
- Vega-tooltips won't show if I have 2 customized vega-tooltips in React component
- Release on push breaks if there is no pull request yet HOT 1
- Support preferred vertical and horizontal relative position used for the tooltip, if window width/height permits it
- Lift restriction on tooltip size for images HOT 1
- [Question]: How can I get the color of breakdown. HOT 1
- Colon use problematic with French HOT 4
- Filtering and sort tooltip values - cannot make a PR? HOT 2
- Add an option to make tooltips hoverable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vega-tooltip.