The Chart class offers a built-in and ready to use control to easily display a graphical representation of data. Chart supports five type of graphs representation: Bar, Pie, Line, Area and Scatter.
- Select the chart type that represents better your data. You can change a chart from one type to another—for example, from a pie chart to a bar chart, or from a line chart to an area chart.
How to use
- Drop a
Chartcontrol from the object panel to a
- Use the
Chart Inspectorto customize its properties like
The inspector where the
Chart class can be configured.
- Drop a
Buttoncontrol from the object panel to a
- Open the
Code Editor(cmd + 6)
- Select the
Actionitem inside the
Eventsarea and write your custom code in the
Chart1.chartType = ChartType.Area
Most important properties
Several UI aspects can be configured in the
Chart class but the
dataSet are the most commons to be configured.
chartType: The graphical representation type
DataSetobject provides information that Chart needs to construct its content.
Chart class reference contains a complete list of properties and methods that can be used to customize a