Using Dojo Charts in our application
Our census application from previous chapters could use some visual appeal when it comes to presenting data. We'll make our first attempt at adding charts and graphs using the
dojox/charting library. We'll apply the graphs to the map popup whenever the user clicks on a census block group, county, or state. The census blocks don't have enough information for us to graph.
Loading the modules
Since our graphs are currently limited to our census application, we need to update the modules in our custom
y2k/Census module definition:
- We'll start by adding
dojo/onto handle the map popup events.
- We'll add the default chart object along with a pie chart and a bar chart module.
- We'll add the