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

Need an example on Reporting Line Chart with multiple lines

3 Answers 494 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 14 Jan 2015, 08:44 AM
Hi Team,
I am using Telerik Version 2014 Q1. I wanted to Show some data along with Line Chart in Telerik Reporting. My main concern is to generated PDF file for Export option. Now I have Line Chart in the Reporting. But I am unable to draw the Lines over the chart. Can you please provide me some stuffs or guide to generate Line chart on Reporting. My output has to come as below attached image shows.

my requirement is based on Hit Counter on each Page of our website. Which are all the pages has got number of hits daily. we are generating this data for last week (any past 7days) & any past one month (any past 30 days).

X axis should be Number of Hits
Y axis should be dates (either 7 days or 30 days)
Lines should be drawn for each page.

I am binding the data from database (please refer the attached image) to the list & am looping it with ChartSeries and its ChartSeriesItem.

Please help me out, how to generate the Line Chart in Reporting(from C# code behind) with lines for each pages(items). Let me know if required any more information from my side.


Clarify me - for line chart which we need to use "ChartSeries" or "LineChartSeries"


thanks lot in advance your input.

3 Answers, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 16 Jan 2015, 02:28 PM
Hello Vishnu,

Mentioning the ChartSeries class suggests that you are using the old and obsolete Chart item, which is no longer supported. We strongly recommend to switch to its successor, the Graph item, which offers much more flexibility, interactivity and should be considerably easier to work with. Additionally, usually there is no need to create your graph programmatically - you can create the charts using the suitable wizard.

Please take a look at the following documentation articles that will help you understand how to create a Line chart for both simple and advanced scenarios:

    Graph Structure
    How to: Create Line Chart
    How to Nest a Graph Item in a Table item

Hope it helps.

Regards,
Ivan Hristov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vishnu
Top achievements
Rank 1
answered on 19 Jan 2015, 09:39 AM
Hi Ivan,
Thanks for your respond and suggestion as well. We need to do it by programmatically only. Which your example shows in the version 2014 Q3. But My Telerik Version is 2014 Q1. 
0
Ivan Hristov
Telerik team
answered on 21 Jan 2015, 01:04 PM
Hi Vishnu,

If you insist of creating your graph programmatically, the easiest way is to design your graph in a VisualStudio designer and then look at the automatically generated .designer.cs file and see how to report items are initialized. Again, designing your report programmatically is not error-prone and is more time-consuming than just using the designer.

The links we sent to you are pointing to our documentation, which is always updated to the last released version of Telerik Reporting. However, the described approaches are applicable to earlier versions of our product, including Q1 2014 that you are working with.

Hope it helps.

Regards,
Ivan Hristov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Vishnu
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
Vishnu
Top achievements
Rank 1
Share this question
or