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

WPF Reporting Chart and SqlDataSource issue

2 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sergio
Top achievements
Rank 1
Sergio asked on 30 Nov 2011, 02:01 PM
Hello,

I'm trying to load my first chart using Telerik Reporting. I have this issue:

I want to create a line chart with two series. the data retrieved from sqldatasource is this:

Euribor1Mes    1Y    2.1153391880
Euribor1Mes    2Y    1.5951715250
Euribor1Mes    3Y    1.7828868410
Euribor1Mes    4Y    2.0519780200
...
Euribor1Mes    47Y    3.2136528810
Euribor 1Mes    48Y    3.2181399930
Euribor1Mes    49Y    3.2224216550
Euribor1Mes    50Y    3.2269428250
Libor1Mes    1Y    2.1153391880
Libor1Mes    2Y    1.5951715250
Libor1Mes    3Y    1.7828868410
Libor1Mes    4Y    2.0519780200
...
Libor1Mes    47Y    3.2136528810
Libor1Mes    48Y    3.2181399930
Libor1Mes    49Y    3.2224216550
Libor1Mes    50Y    3.2269428250

The first field is the name of each serie (there are two different), the second field is the X axis data and the third one is the Y axis data.

Can I load two chart series using this data?

Thank you very much.

2 Answers, 1 is accepted

Sort by
0
Sergio
Top achievements
Rank 1
answered on 01 Dec 2011, 01:28 AM

I'm going to explain my issue better:

This is an example with other data and the chart that I need (Example chart isn't a Telerik chart).

Data

Serie                  X-Axis   Serie Value
Euribor 3 Meses    1Y      1.2802035117
Euribor 3 Meses    2Y      0.5397531631
Euribor 3 Meses    3Y      0.7791243397
Euribor 3 Meses    4Y      1.1178327224
Euribor 3 Meses    5Y      1.4872007825
Euribor 3 Meses    6Y      1.8318939465
Euribor 3 Meses    7Y      2.1279257226
Euribor 3 Meses    8Y      2.3718579161
Euribor 3 Meses    9Y      2.5828448664
Euribor 3 Meses    10Y    2.7617325499
Euribor 3 Meses    11Y    2.9060136472
Euribor 3 Meses    12Y    3.0540108891
Euribor 3 Meses    13Y    3.1504106127
Euribor 3 Meses    14Y    3.2498231043
Euribor 3 Meses    15Y    3.3513308272
Euribor 3 Meses    16Y    3.3924414128
Euribor 3 Meses    17Y    3.4354583409
Euribor 3 Meses    18Y    3.4800100926
Euribor 3 Meses    19Y    3.5261743358
Euribor 3 Meses    20Y    3.5741970673
Euribor 3 Meses    21Y    3.5954786203
Euribor 3 Meses    22Y    3.6179482243
Euribor 3 Meses    23Y    3.6415147738
Euribor 3 Meses    24Y    3.6661499218
Euribor 3 Meses    25Y    3.6920290403
Euribor 3 Meses    26Y    3.7001639894
Euribor 3 Meses    27Y    3.7090588012
Euribor 3 Meses    28Y    3.7186970846
Euribor 3 Meses    29Y    3.7290555897
Euribor 3 Meses    30Y    3.7400681220
Libor 1 Mes            1Y     2.1153391880
Libor 1 Mes            2Y     1.5951715250
Libor 1 Mes            3Y     1.7828868410
Libor 1 Mes            4Y     2.0519780200
Libor 1 Mes            5Y     2.3088360250
Libor 1 Mes            6Y     2.5314766300
Libor 1 Mes            7Y     2.7159284960
Libor 1 Mes            8Y     2.8695109200
Libor 1 Mes            9Y     3.0000154440
Libor 1 Mes          10Y     3.1178245290
Libor 1 Mes          11Y      3.2246266080
Libor 1 Mes          12Y     3.3221486710
Libor 1 Mes          13Y     3.4015864820
Libor 1 Mes          14Y     3.4671641820
Libor 1 Mes          15Y     3.5179041570
Libor 1 Mes          16Y     3.5509953340
Libor 1 Mes          17Y     3.5644378840
Libor 1 Mes          18Y     3.5588370670
Libor 1 Mes          19Y     3.5478490050
Libor 1 Mes          20Y     3.5367214460
Libor 1 Mes          21Y     3.5080847410
Libor 1 Mes          22Y     3.4802775360
Libor 1 Mes          23Y     3.4528743910
Libor 1 Mes          24Y     3.4257989780
Libor 1 Mes          25Y     3.3984616000
Libor 1 Mes          26Y     3.3696417790
Libor 1 Mes          27Y     3.3410055230
Libor 1 Mes          28Y     3.3124354840
Libor 1 Mes          29Y     3.2836636730
Libor 1 Mes          30Y     3.2553058350

I attached one image showing the chart I need.

Thank you very much.

EDIT: I attached a new image "ChartExample2.jpg" with the correct chart. I'm sorry
0
Accepted
Elian
Telerik team
answered on 01 Dec 2011, 06:44 PM
Hello Sergio,

Yes, you can. The chart has a property DataGroupColumn which will group the data and create series according to the column you specify (in your case "Serie").

Kind regards,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Sergio
Top achievements
Rank 1
Answers by
Sergio
Top achievements
Rank 1
Elian
Telerik team
Share this question
or