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>
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:
Here is code with passed