Skip to content

Waffle mark tooltips are always on axis line #2129

Closed
@ericvdtoorn

Description

@ericvdtoorn
image

Ideally, the tooltip should show up if and only if you're hovering on the 2seater group

Basic Repro

// mpg can be downloaded from https://gist.github.com/omarish/5687264/raw/7e5c814ce6ef33e25d5259c1fe79463c190800d9/mpg.csv
const mpg = FileAttachment("data/mpg.csv").csv({typed:true});
const sql = await DuckDBClient.sql({mpg: mpg}) 

Tr

select class, round(100 * count(*) / (select count(*) from mpg) ) as n from mpg group by class order by count(*);
Plot.plot({
    axis: null,
    title: "Waffle Chart",
    subtitle: "'Class of vehicles",
    marks: [
        Plot.waffleX(perc, {
                    x: "n",
                    fill: "class",
                    multiple: 10,
                    tip: true
                    })
    ],
    color: {legend: true},
    height: 400

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions