Skip to content

Misleading scrolling estimate for different screen sizes #65

Description

@dorisjlee

The scrolling estimate for the "Scroll more for X charts" is based on a static estimate based on a laptop-sized screen.
On my 23-inch monitor, the full width of the widget actually displays all the recommendations, so the scroll for 2 more was a bit misleading:

df = pd.read_csv("https://raw.githubusercontent.com/lux-org/lux-datasets/master/data/airbnb_nyc.csv")
df = df[
        [
            "id",
            "name",
            "host_id",
            "host_name",
            "neighbourhood_group",
            "neighbourhood",
            "latitude",
            "longitude",
            "room_type",
            "price",
            "minimum_nights",
            "number_of_reviews",
        ]
    ]
df

image

We should modify the scroll estimate code to take into account the actual number of visualizations outside of the viewable region, so that it is adaptive to different widget widths (and screen sizes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeasyEasy to fix; Good issues for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions