ComponentOne ASP.NET MVC Controls
Header and Footer
Working with Controls > FlexChart > Work with FlexChart > Header and Footer

You can add a title to the FlexChart 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 FlexChart appears, after these properties have been set.

The following code examples demonstrate how to set these. This example uses the sample created in the Quick Start section.

Razor
Copy Code
.Header("Sales Data")
.HeaderStyle(hs => hs.Halign("left"))
.FooterStyle(fs => fs.Halign("right"))
.Footer("*Random Data by ComponentOne")