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

mschart绑定数据后为什么不能得到折线图?
本帖最后由 yejunyan 于 2012-05-26 16:38:50 编辑 做了一个页面,使用mschart线上时间和数据的折线图,我的代码如下:
前台:aspx
-----------------------------
<div>
        <asp:Chart ID="Chart1" runat="server" Width="800px">
                        <series>
                            <asp:Series ChartType="Line" Name="Series1" IsValueShownAsLabel="True" 
                                XValueType="Time" BackGradientStyle="Center" Color="255, 224, 192" 
                                MarkerSize="3" YValuesPerPoint="4" YValueType="Int32">
                            </asp:Series>
                        </series>
                        <chartareas>
                            <asp:ChartArea Name="ChartArea1">
                                <AxisX IntervalAutoMode="VariableCount" IntervalOffsetType="Hours" 
                                    IntervalType="Hours" Title="时间" TitleForeColor="SandyBrown">
                                    <LabelStyle Format="HH:mm" IntervalType="Hours" Interval="Auto" />
                                    <ScaleBreakStyle CollapsibleSpaceThreshold="10" Enabled="True" 
                                        LineColor="Maroon" LineDashStyle="Dash" />
                                </AxisX>                                
                            </asp:ChartArea>