日期:2014-05-17  浏览次数:21182 次

MsChart的Series顺序问题
本帖最后由 LOVESONGFOREVER 于 2012-09-28 13:47:13 编辑 [img=http://t2.qpic.cn/mblogpic/805d8997568c8805e606/2000][/img]

我用的MsChart做的图表、放了两个Series, 各绑定了两条数据,但是生成的数据顺序不是我想要的,我想把蓝的放在一起,橙色的放在一起。
------解决方案--------------------

 <asp:Chart ID="Chart1" runat="server" Width="800" Height="500"  
            Palette="BrightPastel"
            BorderColor="26, 59, 105" 
            BackColor="#D3DFF0" 
            BorderDashStyle="Solid" 
            BackSecondaryColor="White"
            BackGradientStyle="TopBottom" 
            BorderWidth="2" 
            ImageStorageMode="UseHttpHandler">
            <Series>
             <asp:Series Name="Series1" >
             </asp:Series>
             <asp:Series Name="Series2">
             </asp:Series>
             <asp:Series Name="Series3">
             </asp:Series>
            </Series>
              <Legends>
            </Legends>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="White"
                    BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                    <Area3DStyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False"
                        WallWidth="0" IsClustered="False" />
                    <AxisY LineColor="64, 64, 64, 64">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 6