You can add a title to the FlexPie control by setting its Header
property. Besides a title, you may also set a footer for the chart by setting the Footer
property. You can also style the header and footer text with the help of HeaderStyle
and FooterStyle
properties.
The image below shows how the FlexPie appears, after these properties have been set.
The following code example demonstrates how to set these properties. This example uses the sample created in the Quick Start section.
HTML |
Copy Code
|
---|---|
<c1-flex-pie binding-name="Country" binding="Sales" header="Sales Data" footer="*Random data by ComponentOne"> <c1-flex-chart-title-style c1-property="FooterStyle" halign="right"></c1-flex-chart-title-style> <c1-flex-chart-title-style c1-property="HeaderStyle" halign="left"></c1-flex-chart-title-style> <c1-items-source source-collection="Model"></c1-items-source> </c1-flex-pie> |