Steps for getting started with the FlexPie control in MVC applications:
The FlexPie control has five basic properties that allow you to customize its layout and appearance:
The example below allows you to see what happens when you change these properties. Also, clicking on a pie slice will display a tooltip for the data point.
The legend-position property can be used to customize the appearance of the chart's legend. The header and footer properties can be used to add titles to the FlexPie control as well.
The following example allows you to change the FlexPie's legend-position, header, and footer properties in real-time.
The FlexPie control allows you to select data points by clicking or touching a pie slice. Use the selection-mode property to specify whether you want to allow selection by data point or no selection at all (default).
Setting the selection-mode property to Point causes the FlexPie to update the selection-mode property when the user clicks on a pie slice, and to apply the "wj-state-selected" class to the selected element. Setting the FlexPie's selection-mode property to Series or None will disable selections within the control.
The FlexPie offers three additional properties to customize the selection:
The appearance of the FlexPie control is largely defined in CSS. In addition to the default theme, we include several professionally designed themes that customize the appearance of all MVC controls to achieve a consistent, attractive look.
You can customize the appearance of the FlexPie control using CSS. To do this, copy the CSS rules from the default theme to a new CSS file and modify the properties as needed.
In this example, we added the "custom-pie-chart" CSS class to the control and defined some CSS rules to change the fill, font family, and font weight of the header, footer, and legend.