注册 登录
编程论坛 ASP.NET技术论坛

请教关于MSchart,X轴显示时间的问题

猫色色 发布于 2010-03-25 09:24, 2036 次点击
小弟最近刚用Mchart,所以遇到了点问题,我想在X轴显示时间,格式是XXXX-MM-DD HH:mm:DD,可是不管我怎么设置时间格式就只显示XXXX-MM-DD,我看了MSchart自带的例子,可是没找到解决的方法,请问各位大哥,应该怎样设置才能按我的想法显示时间呢?

        <asp:Chart ID="Chart1" runat="server" Width="1100px" Height="300px">
        <legends>
        <asp:legend LegendStyle="Row" IsTextAutoFit="False" Docking="Bottom" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold" Alignment="Far">
            <position y="100" height="8.351166" width="45.19481" x="49.0679665"></position>
        </asp:legend>
        </legends>
        <borderskin skinstyle="Emboss"></borderskin>
            <Series>
                <asp:Series LegendText="Blue" ChartArea = "ChartArea1" BorderWidth="1" Name="Series1" ChartType="Line" ShadowColor="Black" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240" ShadowOffset="2" YValueType="Double" XValueType="DateTime">
                </asp:Series>
                 <asp:Series LegendText="Gold" ChartArea = "ChartArea2" BorderWidth="1" Name="Series2" ChartType="Line" ShadowColor="Black" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240" ShadowOffset="2" YValueType="Double" XValueType="DateTime">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
                <asp:ChartArea Name="ChartArea2">
                </asp:ChartArea>
            </ChartAreas>
2 回复
#2
sj8982010-03-25 10:56
  这个没有研究过 你可以去博客园看看。。
#3
misswang2010-03-25 16:48
没学过,去看看
1