Create graphs programmatically

2 posts, 0 answers
  1. hin
    hin avatar
    15 posts
    Member since:
    Jul 2011

    Posted 10 Mar 2016 Link to this post

    I have previously used Telerik's Charts back in 2013 and now I need to start using it again with the new version.  I am trying to follow this example (, but I can't seem to make basic changes to the graphs via code in this new version of the charts.  

    Previously I was able to change the title of the chart by this syntax.

    Chart1.ChartTitle.TextBlock.Text = "My Test Title"


    How do I do this under the new graph?  



  2. Katia
    Katia avatar
    596 posts

    Posted 12 Mar 2016 Link to this post

    Hi Hin,

    Please note, that the Chart item is obsolete as of Telerik Reporting Q2 2013 and was replaced by the more advanced Graph item. Thus, if you are using the newer version of the product you will need to use the Graph.

    For the new reports, we would recommend creating a Graph in Visual Studio Designer where you can use dedicated Graph Wizards. The Graph Titles, data point and axes labels can be set via expressions in the Graph item. At the end you can review the automatically generated code for the Graph item in .Designer.cs|vb file.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top