日期:2014-05-18  浏览次数:20929 次

ASP.NET MSCHART Label使用求助!
本来用MSCHART得心应手,今天客户一需求解决不了。。求大伙帮忙 T_T

需求建立在多组柱状图上:
HTML code

<asp:chart id="Chart1" runat="server" Height="296px" Width="412px" ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" ImageType="Png" Palette="Pastel" BackColor="#F3DFC1" BorderDashStyle="Solid" BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="181, 64, 1">
                            <titles>
                                <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" Text="Chart for .NET Framework" Alignment="TopLeft" ForeColor="26, 59, 105">
                                    <position y="4" height="8.738057" width="65" x="4"></position>
                                </asp:Title>
                            </titles>
                            <legends>
                                <asp:Legend LegendStyle="Row" Enabled="False" Name="Default" BackColor="Transparent">
                                    <position y="85" height="5" width="40" x="5"></position>
                                </asp:Legend>
                            </legends>
                            <borderskin skinstyle="Emboss"></borderskin>
                            <series>
                                <asp:Series ChartArea="ChartArea1" XValueType="Double" Name="Series2" CustomProperties="DrawingStyle=Cylinder" ShadowColor="Transparent" BorderColor="180, 26, 59, 105" Color="65, 140, 240" Font="Trebuchet MS, 8.25pt, style=Bold" Legend="Legend2" YValueType="Double">
                                    <points>
                                        <asp:DataPoint XValue="1" YValues="70"  />
                                        <asp:DataPoint XValue="2" YValues="80" />
                                        <asp:DataPoint XValue="3" YValues="70" />
                                        <asp:DataPoint XValue="4" YValues="85" />
                                    </points>
                                </asp:Series>
                                <asp:Series ChartArea="ChartArea1" Name="Series1" CustomProperties="DrawingStyle=Cylinder" BorderColor="64, 0, 0, 0" Color="252, 180, 65" Font="Trebuchet MS, 8.25pt, style=Bold">
                                    <points>
                                        <asp:DataPoint BorderColor="64, 0, 0, 0" XValue="1" YValues="65" />
                                        <asp:DataPoint XValue="2" YValues="70" />
                                        <asp:DataPoint BorderWidth="2" BorderColor="220, 26, 59, 105" XValue="3" YValues="82,25" />
                                        <asp:DataPoint XValue="4" YValues="75" />
                                    </points>
                                </asp:Series>
                                <asp:Series ChartArea="ChartArea1" Name="Series3" CustomProperties="DrawingStyle=Cylinder" BorderColor="64, 0, 0, 0" Color="224, 64, 10" Font="Trebuchet MS, 8.25pt, style