hello,
which it is the recommendation of esri for make histograms and bar charts with js
I personally use dojo charts when I have to use them in ArcGIS javascript.
Here is an example: Census Data
ESRI's DC R&D Center is working on a charting library for web services. FYI - still in beta.