Commit bc4cb3b
authored
Respect AspectRatio by making chart-dimensions nullable (#88)
Changes the width/height properties to be nullable. This is required for AspectRatio to work since it's ignored when height is set (and it's always set if it's not nullable). The defaults of 400/400 are also removed.
- As stated in the [responsive section](https://www.chartjs.org/docs/latest/general/responsive.html#configuration-options).
> Note that this option (AspectRatio) is ignored if the height is explicitly defined either as attribute or via the style.1 parent 907f3f2 commit bc4cb3b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments