One of the most powerful features in Chart FX is the Multi-Gallery chart. Multi-Gallery Charts allow you to specify a different chart type for
the series contained in a chart. Not all chart types in Chart
FX can be combined to create a Multi-Gallery chart, only a
subset of the chart types available in Chart FX can be used
with this option.
If you have a chart with more than one series, you can use
the Gallery property in the Series object to assign a different
chart type to a different series in the chart. For example,
if you have a three series chart and you want the first series
to be bar, the second series to be curves and the third series
to be area, your code should look like:
chart1.getSeries(0).setGallery(Gallery.CURVE); chart1.getSeries(1).setGallery(Gallery.BAR); chart1.getSeries(2).setGallery(Gallery.AREA);
|
All Multi-Gallery charts provide 2D/3D support rotation capabilities.
It is also important to note that there is also a Gallery property in the Chart object that applies to all series in
the chart. So you must be careful to reference the series
object when creating Multi-Gallery charts. For example:
chart1.setGallery(Gallery.LINES);
chart1.getSeries(0).setGallery(Gallery.LINES);
|
|