A bar chart is a visualization with rectangular bars having lengths proportional to the values represented. These rectangular bars can be drawn or plotted vertically (by tradition) or horizontally (if supported by the API).
The charts API is not core to GXT, instead it's a plugin based on the Open Flash Charts 2 library and this requires some extra plumbing to get it up and running. The required steps are as follows:
1. Include the
charts
module in your.gwt.xml
file by adding the line<inherits name= "com.extjs gxt.charts.chart" />
to the.gwt.xml
file.2. If you have not already done so, copy the
chart
andflash
folders from theresources
folder in GXT into yourprojects
war folder, such that theflash
andchart
folders are now siblings with thecss
folder from where thegxt-all.css
file must have been included to the host page; that is,<GWT project path>/war/resources/flash
andwar/resources/chart
.3. Include the JavaScript file from within the...