Overview

WebCharts3D software uses classes derived from  com.gp.api.styles.MxWidgetStyle class to represent chart's styles. The particular list of the available styles will depend upon your configuration. To see the list of the currently available classes, their attributes and XSD schemas see Registered styles section of this chapter.

To create a style you can either use a default constructor and modify the attributes of the style or create a style from XML representation. All style classes can be persisted as XML with an optional DTD or XSD Schema. &nbspAPI section of this chapter describes some of the functions that can be used to serialize/deserialize styles in XML format. Generally it is much easier to create styles from XML produced by the designer than to code styles manually.

Example:

   MxPieChartStyle style = new MxPieChartStyle();
   style.type = MxPieChartStyle.Type.PIE;
is the same as:
   MxChartStyle style = MxChartStyle.read("<pieChart type="Pie"/>",null);

NOTE
When a style is persisted only attributes and elements that differ from the default values are written out. To see style's full XML representation, DTD or XSD Schema, switch to Xml Styles pane of the Designer and select the appropriate format by using the right mouse button menu.