vue-d3-charts icon indicating copy to clipboard operation
vue-d3-charts copied to clipboard

Chart data and options can't be dynamic updated

Open maurodx opened this issue 4 years ago • 1 comments

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.

maurodx avatar Nov 24 '20 10:11 maurodx

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.

Saigesp avatar Jan 12 '21 14:01 Saigesp