Skip to content

Charts need to be able to calculate width of their parent container #26

@ONSSamBennett

Description

@ONSSamBennett

You can call each chart type (e.g., BarChart, LineChart, Beeswarm) without going through the Chart component (you might do this if building an app outside of the robo editor), but as the container width is being calculated in the Chart components the width variable is coming up as undefined unless you pass in the width of the container. Ideally each chart should calculate the width of it's container regardless of the route you've called it, and this should only be overwritten if a specified width is passed in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions