Skip to content

Weird behaviour of height and width options #41

@sintro

Description

@sintro

For me, the default 400 for width and height is not applied when I try to render chart (tried for bar_chart).
My custom values are also does not applied directly, but applied in some weird modified states.
Here is origial (default) output code:

<canvas id="chart-0" class="chart" width="1064" height="1064" style="display: block; width: 1064px; height: 1064px;"></canvas>

Here is code with passed

    @chart_options = {
      :height => '20',
      :width => '100'
    }
<canvas id="chart-0" class="chart" width="1081" height="216" style="display: block; width: 1081px; height: 216px;"></canvas>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions