Comments (5)
I'd prefer wrap and if we truncate definitely add a tooltip to see the full text.
from vega-tooltip.
Thanks for the feedback. I find it easier to read what values correspond to each other especially when the labels get long. Luckily, this can easily be changed in CSS. Unless there are strong reasons to change this, I think I'd just leave it.
from vega-tooltip.
I actually strongly prefer Fan's proposed design because readers can scan and read the field names faster if they are left aligned.
Plus if we add legend for color in a follow up PR, the symbols will be aligned if we do left aligned. (But they won't if we keep right alignment.)
from vega-tooltip.
I see. I am okay with changing the design. We should limit the width of the field name column so that it doesn't become to difficult to make the correspondance to the values. Do you want to send a pull request?
from vega-tooltip.
Many thanks @domoritz @kanitw for supporting this! Yes, we will send a PR.
Great point on "limit the width of the field name column"
For handling long field names, we can probably try line wrap and/or truncation (w/ ...
)
Wonder if you have a preference or other ideas
from vega-tooltip.
Related Issues (20)
- Tooltip not working in plotwindow combined with brush selection HOT 1
- 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
- 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
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.