ui-chart
ui-chart copied to clipboard
Track children() before/after .jqplot, responsize/resize
Empty children before plotting, make sure plot created some children or retry, redraw on resize (needed for responsive web design layouts).
I found .jqplot itself was failing sometimes. (It would just appear blank on the page.) I console.log-ed the variables being passed to .jqplot and they were correct. It seems it just doesn't work sometimes? (But it did work on subsequent tries, so its probably some timing thing.)
Also, its nice to redraw the jqplot if the browser resizes. (Needed for responsive web design.)