Skip to content

Autosetting of size confusing me #23

@spresnac

Description

@spresnac

Hej 👋,
I do not know if I am doing anything wrong.
I do setup the chart with size options to 100% like so.

        return Chartjs::build()
            ->name("UserRegistrationsChart")
            ->size(["width" => '100%', "height" => '100%'])
            ->...

The goal is, that the chart is just fitting into it's container (that is of variable size in various browser sizes).

But the chart always renders as a box of 480px x 480px :(
grafik

What am I doing wrong?
Or better: How to get the cart to just render to 100% x 100% ???

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