In a multiple series chart, it is standard practice to add a box containing
descriptions of the series displayed. Series
legend box keys may be set using the Chart class SerLeg property or the Legend
property of the SeriesAttributes class. Once
you have set the legend keys, you may set position and style attributes using
the SerLegBoxObj property.
Using the SerLegBoxObj property you
can control the position and other important aspects of this tool in the chart. For example, the following code can be used to show and position the series legend on the bottom and to the left of the chart:
chart1.setSerLegBox(true); chart1.getSerLegBoxObj().setAlignment(ToolAlignment.NEAR); chart1.getSerLegBoxObj().setDocked(Docked.BOTTOM); chart1.getSeries(0).setLegend("Product 1"); chart1.getSeries(1).setLegend("Product 2"); chart1.getSeries(2).setLegend("Product 3");
|
And the chart will look like:

|