本文介绍了图表控件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.
推荐答案
这篇关于图表控件asp.net 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!