当我使用asp:chart控件时,如何删除边框并修复栏的 [英] How to remove borders and also fix the with of the bar when i use asp:chart control

查看:89
本文介绍了当我使用asp:chart控件时,如何删除边框并修复栏的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用asp:chart控件时,如何删除边框并修复栏的使用,下面是截屏链接,通过该链接我的查询将变得更加清晰.

http://melisa.aleaitsolutions.co.uk/Admin/image.jpg [ ^ ]

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[^]

推荐答案

朋友,

Hi Friends,

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




CustomProperties ="PointWidth = 0.3"
CustomProperties="PointWidth=0.3"


这篇关于当我使用asp:chart控件时,如何删除边框并修复栏的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆