generate charts and graphs from simple data objects in html