I posted an example of how to create an Application Express bar graph with the d3.js visualization toolkit in the Notebooks section of the site.
If you want to see how this can be done in Application Express, check out the page here: http://ba6.us/d3js_application_express_basic_dynamic_action .
-Dave