O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

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

Using an area chart

The area chart is actually a line chart, but with added ability to communicate the scope of its coverage with a solid fill color under its line. It is basically a colored line chart with two or more line plots.

Using an area chart

How to do it...

Create a Chart and ChartModel object and then an AreaChart object for each area you want to plot, each having an appropriate label/legend and color with its setText() and setColour() methods respectively. The ChartModel can then be set on the chart object after giving the model a XAxis and YAxis object.

Once the data is ready, we build a list of Label objects for XAxis and then a list of Number values for ...

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