JasperReports supports several kinds of charts including pie charts, bar charts, XY bar charts, stacked bar charts, line charts, XY line charts, area charts, XY area charts, scatter-plot charts, bubble charts, time-series charts, high-low charts, and candlestick charts. We will discuss each one of these in detail, but before we do so, let us discuss some common properties across all charts.
There is a JRXML element used to create each type of chart. All of these elements will be discussed in subsequent sections. Each of these elements must contain a<chart>
element as one of its sub-elements. The<chart>
element must contain a<reportElement>
to define the chart's dimensions and position as one of its sub-elements. It may also contain a<box>
element to draw a border around the chart, a<chartTitle>
sub-element to define and format the chart's title, and a<chartSubtitle>
sub-element to define and format the chart's...