ContentsChartingRendering options
Previous: Scaling | Next: Altering the underlying data

Rendering options

It is possible to control the appearance of the chart through means other than the obvious rendering options of placement, size, color, and line width provided by the ValueSet constructors and PdfChart.draw... functions. Some of the ValueSet subclasses provide additional methods (e.g. the AreaValueSet.setBehindGrid() method). The JavaDoc for each class should be examined for these methods.

Sometimes, you just can't get a graphic feature that you want. In those cases, it might make sense to use the graphic methods provided by the PdfPage class (which is the superclass of PdfChart).

Another technique is to modify the current font attributes (style, color / density, and size) using PdfPage.setFont(), PdfPage.setTextColor(), and PdfPage.setTextDensity().

This is a sampler of the use of these techniques to customize the chart. code / output


ContentsChartingRendering options
Previous: Scaling | Next: Altering the underlying data