Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to remove borders and also fix the with of the bar when i use asp:chart control,below is the screen shot link from which my query will become more clear.

http://melisa.aleaitsolutions.co.uk/Admin/image.jpg[^]
Posted
Updated 1-Feb-12 22:56pm
Comments
Rajesh Anuhya 2-Feb-12 4:57am    
Repost

Hi Friends,

C#
using System.Web.UI.DataVisualization.Charting;
...

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 Gradient 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;
}

C#

 
Share this answer
 
CustomProperties="PointWidth=0.3"
 
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