Articles in this section
Category / Section

How to render chart area without border in ASP.NET Web Forms Chart?

2 mins read

Essential Chart renders the chart area with border by default. Chart area border is represented by lines at four sides (left, right, top and bottom) of the chart area. The Border property in ChartArea is used to customize border lines in the chart area.

You can hide the chart area border by setting transparent color to the Color property of the chart area border. The Border property also provides options to customize the width and opacity of the lines representing the chart area border.

Setting transparent color only hides the border lines of the chart area, but still axis lines are visible in the chart area. Remove the axis lines to display the Chart without any lines at the left and bottom border of the chart area.

ASP

<ej:Chart ID="container" runat="server">
<ChartArea><Border Color="transparent" /></ChartArea>
. . . . . .
. . . . . .
</ej:Chart>

Chart with border

The following screenshot displays the Chart with red color border having 3 pixel width.

The Chart with red color border

Figure 1: Chart with red color border having 3 pixel width

Chart area without border

The following screenshot displays the Chart with hidden (transparent) border. After removing the border, axes lines are visible at the left and bottom sides of the chart area. Disable the axis lines of the horizontal axis (primary X axis) and the vertical axis (primary Y axis) to remove the axis lines at the bottom and left side of the chart area.

The Chart with hidden (transparent) border

Figure 2: Chart without border

Chart without border and axis lines

The following screenshot displays the Chart without border and axis lines.

The Chart without border and axis lines

Figure 3: Chart without border and axis lines


Note:

A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions.The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.

The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.

You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!


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
Access denied
Access denied