ASP.NET MVC Controls | ComponentOne
Working with Controls / FlexChart / Work with FlexChart / Header and Footer
In This Topic
    Header and Footer
    In This Topic

    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.

    Showing header and footer in a FlexChart

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

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