vue-graph icon indicating copy to clipboard operation
vue-graph copied to clipboard

Setting width to 100% throws warning

Open lewiswalsh opened this issue 6 years ago • 2 comments

I want the chart to fill the parent element, so I set the width to 100% as per the JUI chart docs:

<graph-bar width="100%"...

While this works fine, the console shows the following error:

[Vue warn]: Invalid prop: type check failed for prop "width". Expected Number, got String.

Note, this is not using bind.

lewiswalsh avatar Jun 05 '19 12:06 lewiswalsh

@lewiswalsh If set to '0', it is applied as 100%.

seogi1004 avatar Jul 02 '19 01:07 seogi1004

Tried that with both at the same time. Result is widh: 100% and height: 0

How to use the vue-graph-svg in a flexbox grid layout?

CaptainCannabis avatar Sep 14 '19 14:09 CaptainCannabis