Properties
chartContainer
A Container chart places its elements in
bulletsContainer
A Container chart places its bullets in
Creating a Chart
Chart is an abstract base class. Use specific chart types instead:- XYChart - For line, area, column, bar, and other XY-based charts
- PieChart - For pie and donut charts
- MapChart - For geographic maps
- TreeMap - For hierarchical tree maps
- RadarChart - For radar/spider charts
- And many more…
Example: XY Chart
Example: Pie Chart
Common Chart Features
Since Chart extends Container, it inherits all Container properties and methods:- Layout management - Use
layoutproperty to arrange chart elements - Background - Set a background using
backgroundproperty - Padding - Control inner spacing with padding properties
- Children management - Add/remove elements using
childrenlist - Events - Listen to container events
Working with Series
Most charts have aseries property (a list) where you add data series:
Adding to Root
Charts are typically added to the root container:Inherited Properties
From Container:widthandheight- Chart dimensionspaddingTop,paddingRight,paddingBottom,paddingLeft- Inner spacinglayout- Layout algorithm for child elementsbackground- Background graphics
xandy- Positionvisible- Visibilityopacity- Transparencyrotationandscale- Transformations- Event handlers and tooltips
See Also
- XYChart Documentation
- PieChart Documentation
- MapChart Documentation
- Series - Working with data series
- Container - Container functionality