图表控件asp.net 4.0

图表控件asp.net 4.0

问题描述:

我想在我的网络应用程序中包含一个图表并根据点的值更改其属性,直到现在我可以将数据绑定到我的图表并绘制传统的条形图

here''背后的代码:

I want to include a chart in my web application and change its properties according to values of points, till now i can bind data to my chart and draw the conventional bar chart
here''s the code behind:

Chart1.DataSource = MyDataSource;
Chart1.DataBind();





和这里添加了page.aspx代码:





and here''s the page.aspx code added:

<asp:Chart ID="Chart1" runat="server" OnLoad="Chart1_Load">
    <series>
        <asp:Series IsValueShownAsLabel="True" Name="Series1" XValueMember="Name" YValueMembers="No_Of_Posts">
        </asp:Series>
    </series>
    <chartareas>
        <asp:ChartArea Name="ChartArea1">
            <AxisY Title="No Of Posts">
            </AxisY>
            <AxisX Title="Name">
            </AxisX>
        </asp:ChartArea>
    </chartareas>
</asp:Chart>



我搜索了很多视频来帮助我改变和探索图表控件属性,但我一无所获。任何包含示例的视频或教程都会非常有用。提前谢谢。


I searched for many videos to help me changing and exploring the chart control properties but i found nothing. any videos or tutorials including examples will be so helpful. thanks in advance.

Yu可以从这里开始: ASP.NET 4.0图表控件 [ ^ ]
Yu could start here: ASP.NET 4.0 Chart Control[^]