顶级&酒吧的底部空间! [英] Top & Bottom space of Bars!

查看:100
本文介绍了顶级&酒吧的底部空间!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在第一个和最后一个酒吧/主要网格的顶部和底部都有一个空间。


我在此链接中突出显示了箭头问题。

I am currently getting a space on top and bottom of first and last bars/major grids.
I have highlighted the issue with arrows on this link.

http://cs.cotechnica.com/snapshot.png

以下是代码。请建议。

< asp:Chart ID =" Chart1" RUNAT = QUOT;服务器" RenderType =" BinaryStreaming">

< Series>

< asp:Series Name =" Series1"图图表= QUOT;酒吧及QUOT; YValueType = QUOT;双" BorderColor =" 180,26,59,105"颜色="220,65,140,​​240">

<点>

< asp:DataPoint AxisLabel =" 3m" x值= QUOT; 0" YValues = QUOT; -6.32"颜色="红色" />
$
< asp:DataPoint AxisLabel =" 1y" x值= QUOT 1 QUOT; YValues = QUOT; 5.32"颜色="红色" />
$
< asp:DataPoint AxisLabel =" 3y" x值= QUOT; 2英寸YValues = QUOT; 13.32" Color =" Red" />

< / Points>

< / asp:Series>

< asp:Series Name =" Series2"图图表= QUOT;酒吧及QUOT; YValueType = QUOT;双" BorderColor =" 180,26,59,105"颜色="220,65,140,​​240">

<点>

< asp:DataPoint AxisLabel =" 3m" x值= QUOT; 0" YValues = QUOT; 10.32"颜色="蓝色" />
$
< asp:DataPoint AxisLabel =" 1y" x值= QUOT 1 QUOT; YValues = QUOT; -5.32" Color =" Blue" />

< asp:DataPoint AxisLabel =" 3y" x值= QUOT; 2英寸YValues = QUOT; -8.32" Color =" Blue" />

< / Points>

< / asp:Series>

< / Series>

< ChartAreas>

<asp:Chart ID="Chart1" runat="server" RenderType="BinaryStreaming">
<Series>
<asp:Series Name="Series1" ChartType="Bar" YValueType="Double" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240">
<Points>
<asp:DataPoint AxisLabel="3m" XValue="0" YValues="-6.32" Color="Red" />
<asp:DataPoint AxisLabel="1y" XValue="1" YValues="5.32" Color="Red" />
<asp:DataPoint AxisLabel="3y" XValue="2" YValues="13.32" Color="Red"/>
</Points>
</asp:Series>
<asp:Series Name="Series2" ChartType="Bar" YValueType="Double" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240">
<Points>
<asp:DataPoint AxisLabel="3m" XValue="0" YValues="10.32" Color="Blue" />
<asp:DataPoint AxisLabel="1y" XValue="1" YValues="-5.32" Color="Blue"/>
<asp:DataPoint AxisLabel="3y" XValue="2" YValues="-8.32" Color="Blue"/>
</Points>
</asp:Series>
</Series>
<ChartAreas>

< asp:ChartArea Name =" ChartArea1" BorderColor =" 64,64,64,64" BorderDashStyle = QUOT;固体" BackSecondaryColor = QUOT;透明" BackColor =" 64,165,191,228"则shadowColor = QUOT;透明" BackGradientStyle =" TopBottom">

< position Y =" 3"高度= QUOT; 92"宽度= QUOT; 92" X ="2">< / position>

< axisy LineColor =" 64,64,64,64" >

< LabelStyle Font =" Trebuchet MS,8.25pt,style = Bold" />
$
< MajorGrid LineColor =" 64,64,64,64" />
$
< / axisy>

<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
<position Y="3" Height="92" Width="92" X="2"></position>
<axisy LineColor="64, 64, 64, 64" >
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</axisy>

< axisx LineColor =" 64,64,64,64">

< LabelStyle Font =" Trebuchet MS,8.25pt,style = Bold"启用= QUOT假QUOT; />
$
< MajorGrid LineColor =" 64,64,64,64" IntervalOffset =" 0.5" /
< / axisx>

< / asp:ChartArea>

< / ChartAreas> ;
$
< / asp:图表>

<axisx LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" Enabled="false" />
<MajorGrid LineColor="64, 64, 64, 64" IntervalOffset="0.5"/>
</axisx>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>

推荐答案

添加 CustomProperties =" PointWidth = 1" 到每个系列。默认值为
0.8
Add CustomProperties="PointWidth=1" to each of the series. The default is 0.8 .

这篇关于顶级&amp;酒吧的底部空间!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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