0
我有點糊塗了用Asp:圖表,我有一個返回一行ASP:圖表,圖圖表=「列」與傳奇可見
現在我希望它顯示在一個表Asp:圖表ChartType =「列」。
我轉換上表成的格式
我使用的一個系列
<asp:Chart ID="charttest" runat="server" Width="950px" Height="250px"> <Series> <asp:Series Name="Categories" IsValueShownAsLabel="true" ChartArea="MainChartArea" ChartType="Column" Legend="legend1" > </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="MainChartArea" Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" BorderWidth="1" Area3DStyle-WallWidth="1" Area3DStyle- PointGapDepth="50" Area3DStyle-PointDepth="100" Area3DStyle- Rotation="10"> </asp:ChartArea> </ChartAreas> <Legends> <asp:Legend Name="legend1" BorderColor="Blue" ></asp:Legend> </Legends> </asp:Chart>
問題:
一個。該圖表正確顯示,但只有一個圖例,無法將標籤從後面的代碼更改爲百分比。
然後,我用多個系列,但
<asp:Chart ID="charttest" runat="server" Width="950px" Height="250px"> <Series> <asp:Series Name="Categories" IsValueShownAsLabel="true" ChartArea="MainChartArea" ChartType="Column" Legend="legend1" > </asp:Series> <asp:Series Name="Categories2" IsValueShownAsLabel="true" ChartArea="MainChartArea" ChartType="Column" Legend="legend1" > </asp:Series> <asp:Series Name="Categories3" IsValueShownAsLabel="true" ChartArea="MainChartArea" ChartType="Column" Legend="legend1" > </asp:Series> <asp:Series Name="Categories4" IsValueShownAsLabel="true" ChartArea="MainChartArea" ChartType="Column" Legend="legend1" > </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="MainChartArea" Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" BorderWidth="1" Area3DStyle- WallWidth="1" Area3DStyle-PointGapDepth="50" Area3DStyle- PointDepth="100" Area3DStyle-Rotation="10"> </asp:ChartArea> </ChartAreas> <Legends> <asp:Legend Name="legend1" BorderColor="Blue" ></asp:Legend> </Legends> </asp:Chart>
問題:
一個。圖例正確顯示,我能夠以百分比顯示標籤,但軸值沒有顯示出來,它必須在它們之間顯示空格。
你能告訴我,我應該怎麼解決這個問題。
- 使用單個或多個系列來解決此問題。我做了大量的研究,但找不到完美的解決方案。
- 列名必須顯示在每個塊的正下方。