Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just want to remove border in asp.chart control.
Thanks
Posted
Comments
Sridhar Patnayak 2-Feb-12 2:13am    
Not described properly?

This may useful to you

Complete reference for asp.chart control

http://www.4guysfromrolla.com/articles/072209-1.aspx[^]

Thanks
SP
 
Share this answer
 
Hi Friend,

Take advantage from this Code:
C#
using System.Web.UI.DataVisualization.Charting;
...
<pre lang="c#">
private void Page_Load(object sender, System.EventArgs e)
{
    // Set Border Skin
    Chart1.BorderSkin.SkinStyle = BorderSkinStyle.FrameThin6;

    // Set Background Primary Color
    Chart1.BorderSkin.BackColor = Color.Red;

    // Set Background Secondary Color
    Chart1.BorderSkin.BackSecondaryColor = Color.Blue;

    // Set Hatch Style
    Chart1.BorderSkin.BackHatchStyle = ChartHatchStyle.DarkVertical;

    // Set Gradi<pre lang="c#">
ent Type
Chart1.BorderSkin.BackGradientStyle = GradientStyle.DiagonalRight;

// Set Border Color
Chart1.BorderSkin.BorderColor = Color.Yellow;

// Set Border Style
Chart1.BorderSkin.BorderDashStyle = ChartDashStyle.Solid;

// Set Border Width
Chart1.BorderSkin.BorderWidth = 2;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900