score:1

according to the xchart docs you need to make a call to initialize the chart:

var mychart = new xchart('bar', data, '#mychart');

if you're already doing this, have you verified that the element exists in the dom at the point in time the chart is being initialized? you might try initializing the chart in componentdidupdate


Related Query

More Query from same tag