Skip to content

Tooltip values are wrong if css alters width of svg #310

@caHaber

Description

@caHaber

Hey Ya'll.

I am using vega-embed to create charts dynamically of specified width and height. I am also applying a width via css on top of that so that the svg will resize to a proper window size. I'm afraid that when I do this the tooltip still functionally acts correctly but the values are fetched using the original size of the svg. (See image below.)

incorrect_tooltip_values

This seems like a bug but I would not be surprised if there is a simple work around I am missing.

Thank you for the great work you all are doing on vega and altair.
The entire ecosystem is great and I hope to contribute as I get more comfortable with things.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions