Jerome Yang of the JavaScript team has written some great blog posts on data visualization with the ArcGIS API for JavaScript. Post one in the series is an introduction to the topic. Post two covers unique value renderers and Post 3 discusses adding support for popups and legends.