Are you still having problems?
There are many ways to display the chart but the one I've used and
works fine for me is to create dinamically the XML using a builder and
then to render it in the view. You just need to include the js file