This is a migrated thread and some comments may be shown as answers.

Create graphs programmatically

1 Answer 237 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hin
Top achievements
Rank 1
hin asked on 11 Mar 2016, 02:29 AM

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 (http://docs.telerik.com/reporting/graphhowtocreateprogrammaticallygraph), 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?  

 

 

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 12 Mar 2016, 04:00 PM
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.

Regards,
Katia
Telerik
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
Tags
General Discussions
Asked by
hin
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or