GithubHelp home page GithubHelp logo

Comments (6)

kanitw avatar kanitw commented on August 19, 2024

This will be partially addressed by fixing vega/vega-lite#508, but we should wait until we have layering support first.

from vega-tooltip.

kanitw avatar kanitw commented on August 19, 2024

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.

light-and-salt avatar light-and-salt commented on August 19, 2024

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.

kanitw avatar kanitw commented on August 19, 2024

Hmm. If it is partially fixed and should be further fixed, I don't think we should close it.

from vega-tooltip.

light-and-salt avatar light-and-salt commented on August 19, 2024

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.

light-and-salt avatar light-and-salt commented on August 19, 2024

Close via #50

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.