我有一个asp.net柱形图。在我的X轴我有三列(1,4,5) 。当显示图表时,还有另外两个空列:2,3。我不想看到他们。我只需要1,4和5.彼此相邻。没有间隔。我没有设置任何间隔!有可能吗?
我的数据源是一个简单的表,有两列。 谢谢My Chart Picture
Chart2.Series[0].YValueMembers = "c";
Chart2.Series[0].XValueMember = "q";
var list = rl.sp_ChartDakheli(QNumer, Dp_FilterType.SelectedValue,Dp_NiazType.SelectedValue, int.Parse(Dp_FilterFileds.SelectedValue), 5);
Chart1.DataSource = list;
Chart1.DataBind();
<asp:Chart ID="Chart2" runat="server"
BackGradientStyle="TopBottom" BackImageTransparentColor="Transparent"
BackSecondaryColor="White" BorderColor="#1A3B69" BorderDashStyle="Solid"
BorderlineColor="Transparent" BorderWidth="2px" Height="488px" Palette="None"
PaletteCustomColors="Red; Blue; Yellow; 0, 192, 0; Fuchsia; Aqua; 255, 128, 0; Silver; 255, 192, 192; AliceBlue"
Width="1100px" >
<Series>
<asp:Series Name="Series1" Color="Blue" CustomProperties="PixelPointWidth=50">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BackColor="Transparent" BackSecondaryColor="White"
ShadowColor="Transparent">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>