Skip to content

How to use the layout.autosize? #76

@lucas-viewup

Description

@lucas-viewup

Good day, I'm having problem with the attribute autosize of layout property, I set to true but is not working as the docs says:

Note: To make a plot responsive, i.e. to fill its containing element and resize when the window is resized, use style or className to set the dimensions of the element (i.e. using width: 100%; height: 100% or some similar values) and set useResizeHandler to true while setting layout.autosize to true and leaving layout.height and layout.width undefined. This will implement the behaviour documented here: https://plot.ly/javascript/responsive-fluid-layout/

What I want is have a container that defines the area of the charts like I highlighted in this image:
react-ploty-autoresize

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