2013-05-03 2 views
0

막대 사이의 간격을 상대적으로 늘리는 PointWidth를 사용하여 막대 너비를 변경하는 방법을 알고 있지만 막대의 너비를 유지하면서 바.Mschart - 막대 사이의 너비를 변경하는 방법

<asp:Chart ID="chart" runat="server" Height="300px" Width="850px" 
      BorderDashStyle="Solid" BorderWidth="2" BackColor="#f0f0f0" Visible="false" EnableViewState="true"> 
      <Legends> 
       <asp:Legend TitleFont="Microsoft Sans Serif, 8pt, style=Bold" BackColor="Transparent" 
        Font="Trebuchet MS, 8.25pt, style=Bold" IsTextAutoFit="False" Enabled="False" 
        Name="Default"> 
       </asp:Legend> 
      </Legends> 
      <Series> 
       <asp:Series Name="s1" Color="#4f81bd" CustomProperties="PointWidth=.6" ChartType="StackedColumn100"> 
       </asp:Series> 
       <asp:Series Name="s2" Color="#c0504d" CustomProperties="PointWidth=.6" ChartType="StackedColumn100"> 
       </asp:Series> 
       <asp:Series Name="s3" Color="#9bbb59" CustomProperties="PointWidth=.6" ChartType="StackedColumn100"> 
       </asp:Series> 
      </Series> 
      <ChartAreas> 
       <asp:ChartArea Name="ChartArea1" BorderDashStyle="Solid"> 
        <AxisX> 
         <LabelStyle Enabled="false" /> 
         <MajorTickMark Enabled="false" /> 
        </AxisX> 
        <AxisY> 
         <MajorGrid Interval="10" IntervalOffset="10" /> 
         <MajorTickMark Enabled="true" Interval="10" IntervalOffset="10" /> 
         <LabelStyle Format="{#}%" Interval="10" IntervalOffset="10" /> 
        </AxisY> 
        <Position Y="0" Height="100" Width="100" X="5"></Position> 
       </asp:ChartArea> 
      </ChartAreas> 
     </asp:Chart> 

답변

0

바 사이의 공간이 동적이며 편집 할 수없는 것처럼 보입니다. 차트 너비를 변경하면 막대 사이의 공간이 늘어납니다.