O'Reilly logo

Ext GWT 2.0 Beginner's Guide by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

BarChart class

The first ChartConfig that we are going to look at is the BarChart. In its very simplest form, we can create a createChartModelData method as follows:

  • Create a ChartModel
  • Create a BarChart ChartConfig
  • Add values to the BarChart
  • Add the BarChart to the ChartModel
  • Return the ChartModel
private ChartModel createChartModel() {
ChartModel chartModel = new ChartModel();
BarChart chartConfig = new BarChart();
chartConfig.addValues(6936,8628,41832,68376,296,10114,4693);
chartModel.addChartConfig(chartConfig);
return chartModel;
}

However, this will produce a chart that looks like this:

BarChart class

The main problem is that the values are too large for the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required