vue-d3-charts
vue-d3-charts copied to clipboard
Chart data and options can't be dynamic updated
I'm trying to generate barchart from a json axios response. I've called axios during mounted() hook but chart is not generated. SVG contains some elements but it's width is 0px.
I've changed chart_data and chart_options elements inside axios response promise.
Hi @maurodx, thanks for the report, and sorry for my late response.
The charts need the wrapper element to have a preset space to calculate the position of the bars/dots. Try forcing the container space with style="width: 100%"
or similar.