Dynamic HTML5 graph rendering