vue-funnel-graph-js
vue-funnel-graph-js copied to clipboard
Full width
Is there an easy way to implement full width? Fixed width is not an option in this day and age.
Thank you for the great plugin!
@greghub Hi Greg, any progress with this?
If anyone is looking for a temporary fix until this feature is implemented, here's how I've implemented it atm:
Add a ref-Attribute to the wrapping element:
<div ref="funnel-graph-wrapper">
<funnel-graph :width="graphWidth" ... />
</div>
... and calculate the width using a computed property:
computed: {
graphWidth() {
return this.$refs['funnel-graph-wrapper'].offsetWidth;
},
}