Articles in this section
Category / Section

How to set background color for chart area?

1 min read

Essential Chart supports customizing chart area background and border using ChartArea property.  By default chart area Background is set as “transparent”. To customize the chart area border color, width and opacity, you can use Border property of chart area. This is illustrated in the following code example.

ASP

<ej:Chart ID="container" runat="server">        
        <ChartArea Background="lightblue"><Border Color="red" Width="3" /></ChartArea>
</ej:Chart>

The following screenshot illustrates the output.

The chart area with background color

Figure 1: Customized Chart

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment