Working with business graphs / Report Writer business graphs |
The MapChart layout object allows you to create a graph that has one set for values to be mapped, grouped together by a specific key.
The MapChart layout object is defined by the MapChartDrawAs class.
Draw As property: This kind of graph can be drawn as a Pie, Pie3D, Bar, Bar3D or Ring, or as a table. For example, the pie chart in Figure 1 presents the total revenue (the value) for each customer (the key), based on the OrderReport.rdd file in the Report Writer sample programs.
Draw Legend and Draw Labels property: These properties have been added to customize the appearance of the plots. In particular the option to remove the legend is useful when more then several charts are drawn next to each other in a document; the option can be used to make the charts share a single legend by specifying the legend only on one of the charts.
Figure 1. Pie Chart example
The Map Chart Item layout object specifies the key data item and the values data item in its properties: