Open mqklin opened 8 years ago
You can useheight: 77em !important
, to change priority.
@mgalloue, had you tried it before you wrote this? Of course it's not working because width
in this case in an attribute
, not style
.
Oops, sorry yes I was speaking about style obviously. For all my charts I'm using chart.width() for sizing and it's works well, don't know what is the difference in you case.
@mgalloue, it works because of incorrect Chrome
or Firefox
behaviour. It's not working in IE
. chart.width()
sets width
as attribute and it shouldn't rewrite width
as style (see screen above).
From
main.css
:And when I try to make this:
chart.height("77em")
, it setsheight
attribute tosvg
element, but classes have higher priority then[attributes]
!