Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If i select an item from the dropdown list ,then it shows Text as a Title in a Chart control

C#
<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>

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...
Posted
Comments
Dilan Shaminda 21-Jul-14 9:33am    
So, why can't you change the Title Text when DropDownList1_SelectedIndexChanged event is firing?
[no name] 21-Jul-14 23:28pm    
How to display title DropDownList1_SelectedIndexChanged ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900