1
幾乎完成了我的調查網絡的一部分,但需要做我的線圖上做一些修改,但不能在網上找到任何相關的資源ASP.net條形圖控制 - 入門
我需要從兩個軸(x and y)
刪除號碼(-1,0,1,2,3...)
是可能的? 也是我需要刪除默認的圖表的背景圖片,它的更好,如果我可以用純白色
切換它謝謝
幾乎完成了我的調查網絡的一部分,但需要做我的線圖上做一些修改,但不能在網上找到任何相關的資源ASP.net條形圖控制 - 入門
我需要從兩個軸(x and y)
刪除號碼(-1,0,1,2,3...)
是可能的? 也是我需要刪除默認的圖表的背景圖片,它的更好,如果我可以用純白色
切換它謝謝
禁用標籤
您可以通過添加LabelStyle啓用=做到這一點「假」按照以下
<asp:Chart ID="Chart1" runat="server">
<Series>
<asp:Series Name="Series1">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
<AxisY>
<LabelStyle Enabled="false" />
</AxisY>
<AxisX>
<LabelStyle Enabled="false" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
更改背景
<asp:Chart id="Chart1" runat="server">
<BorderSkin BackColor="Transparent" PageColor="Transparent"
SkinStyle="Emboss" />
</asp:Chart>
PageColor & 背景色屬性將幫助您更改圖表的背景
更新:
更新您的ChartArea按以下禁用網格線,使之白
<asp:ChartArea Name="ChartArea1" BorderColor="black" BorderDashStyle="Solid" BackSecondaryColor="White"
BackGradientStyle="TopBottom">
<AxisY LineColor="64, 64, 64, 64">
<MajorGrid Enabled="false"></MajorGrid>
</AxisY>
<AxisX LineColor="64, 64, 64, 64" IsStartedFromZero="true">
<MajorGrid Enabled="false"></MajorGrid>
</AxisX>
</asp:ChartArea>
'禁用標籤'工程很好,背景改變了,但我注意到它不是我想要的,我可能會解釋我的問題錯了,我想用純白色替換圖表的網格背景,是可以實現的嗎? – 2011-12-20 11:14:11
@Rami請檢查我的更新回答 – 2011-12-20 11:29:47
這是有益的,它現在有用,我會接受答案,如果你可以注意到還有一小部分線外的部分板塊,是否有可能將它們刪除?謝謝.. – 2011-12-20 11:45:21