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

chart with 2 series

1 Answer 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lamia
Top achievements
Rank 1
Lamia asked on 03 Apr 2010, 08:49 PM
hi all,

i have problem with binding data in chart_needdatasource event, so i have in my dataset a query with 2 parameters:

1. i need to know when and why can i pass values of parametres to query they must be equal to my reports parameters.
2. the result of query is like this :
               A                 B              C

        22/03/2010     4729.10     697892
        23/03/2010     4730.30 624660
        24/03/2010     4732.62 350287
        25/03/2010     4693.45 604223
        26/03/2010     4703.82 374447

.i like that the Axe  X contain the column A, the Y1 contain colum(B)  and Y2 contain colum(B) what should i do ?? please help

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Apr 2010, 11:45 AM
Hello Lamia,

The SqlDataSource component supports parameterized SQL queries by associating the parameters you add to the Parameters collection with placeholders in the SelectCommand query. Parameter values can be evaluated with any expression which conforms to the common expression syntax supported by the reporting engine.

For more information and examples check out Using Parameters with the SqlDataSource component help article.

We are not sure that we correctly understand your second question but if you mean that you want to create a secondary Y Axis you have to create a chartseries for column C with YAxisType property set to Secondary.

Sincerely yours,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Lamia
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or