如何在asp.net中将图表标题显示为dropdownlist选中项目 [英] how to display chart title as dropdownlist selected item in asp.net
本文介绍了如何在asp.net中将图表标题显示为dropdownlist选中项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我从下拉列表中选择一个项目,那么它会在图表控件中将文本显示为标题
If i select an item from the dropdown list ,then it shows Text as a Title in a Chart control
<asp:Chart ID="Chart1" runat="server" Height="350px" Width="600px" Style="text-align: center;
margin-left: auto; margin-right: auto; ">
<Titles>
<asp:Title Font="Times New Roman, 12pt, style=Bold, Italic" Name="Title1" Text="Daily MeatSale Graph" >
</asp:Title>
</Titles>
<Legends>
<asp:Legend Docking="Bottom" IsTextAutoFit="False" Name="MeatinKgs" LegendStyle="Row" />
</Legends>
<Series>
<asp:Series Name="Meat in Kgs" ToolTip="#VALX [#VALY Kgs]" YValuesPerPoint="1" />
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
现在Graph将Daily MeatSale Graph显示为标题,但我想要显示标题如
Daily MeatSale Graph - BranchName
看到这样的演示..
http://demos.telerik.com/aspnet-ajax/chart/examples/databinding/database/defaultcs.aspx [ ^ ]
请帮帮我...
Now Graph is showing "Daily MeatSale Graph" as an Title but i want to shows title like
"Daily MeatSale Graph - BranchName"
see demo like this..
http://demos.telerik.com/aspnet-ajax/chart/examples/databinding/database/defaultcs.aspx[^]
Please help me...
推荐答案
这篇关于如何在asp.net中将图表标题显示为dropdownlist选中项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文