5.8.2 Chart

ChartPaintTags

This tag can be used for setting background color of chart and etc.

Tag Explanation
ChartPaintTags.DEFAULT Style for setting chart colors

Table 5.8.2.1 ChartPaintTags

Usage:

 
//setting chart background color using ChartPaintTags
chart.getPaintStyle().setBackground(ChartPaintTags.DEFAULT, new Color(255,255,153));

3D Chart Features

Anti Aliasing

Anti - aliasing smoothness the edges after rendering a shape. This feature is available just for 3D charts.

Note: Enabling anti-aliasing will use more memory and slow down the chart rendering speed. We suggest not to use these function for a complex charts.

Usage:

1
2
3
4
5
6
7
8
// setting Anti-aliasing. You can set None or 2x sampling.
chart.setAntiAliasing(AntiAliasing.SuperSampling2x);
 
// renders anti-aliased fonts.
chart.setSmoothFonts(true);
 
// renders anti-aliased lines.
chart.setSmoothLines(true);

3D chart without anti-aliasing Demonstration

Figure 5.8.2.1 3D Charts Without Anti-Aliasing Demonstration

3D chart width anti-aliasing Demonstration

Figure 5.8.2.2 3D Charts With Anti-Aliasing Demonstration