Giter Club home page Giter Club logo

Comments (5)

domoritz avatar domoritz commented on June 7, 2024 1

I'd prefer wrap and if we truncate definitely add a tooltip to see the full text.

from vega-tooltip.

domoritz avatar domoritz commented on June 7, 2024

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.

kanitw avatar kanitw commented on June 7, 2024

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.

domoritz avatar domoritz commented on June 7, 2024

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.

fandu-db avatar fandu-db commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.