Hi, I'm trying to make my webapp responsive and resizing the charts is very important, this is my code:
$(function(){
$(window).resize(function(){
var graficos = new Array();
graficos = document.getElementsByClassName('jchartfx');
for (var i = 0; i < graficos.length; i++)
{
graficos.doUpdate(true);
}
});
});
So everytime the user resizes the window, the chart should resize too, but i can't get it to work, and keep getting this error
Uncaught TypeError: Object #<HTMLDivElement> has no method 'doUpdate'
i've tried using the div and the svg element with the same result, I hope you can help me.
Thank you.