We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to render chart area without border?

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.

CSHTML

Chart with border

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

C:\Users\ApoorvahR\Desktop\1.png

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.

Figure 2: Chart without border

Chart without border and axis lines

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

Figure 3: Chart without border and axis lines

Article ID: Published Date: Last Revised Date: Platform: Control:
3942 02/12/2015 02/12/2015 ASP.NET MVC Chart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon