Hello, I am trying out Telerik reporting and am attempting to learn how to bind to a line Graph. Here is my situation:
-I have a table of transactions, each of which has a "category"
-I have a parameter which is a date
-I want my line graph to show the count of each "category" for each of the last 7 days. So I want a series (line) for each "Category", where my x-axis is the day (7 days ago to now) and the y-axis is the count of transactions for that category.
My problem is that I do not know "what" categories these may be before-hand. I tried using a "pivot" in my sql query: this gives me a result set with each day as columns and counts for each category. I cannot create my line series in the design view because I don't know the categories (could be 2, 15 ect.)
Is there a way, after the chart is bound to this result set, to get that set, iterate through it, construct a "custom" result set with the "categories" as columns, and programatically add the series to construct the chart? Thanks so much
-I have a table of transactions, each of which has a "category"
-I have a parameter which is a date
-I want my line graph to show the count of each "category" for each of the last 7 days. So I want a series (line) for each "Category", where my x-axis is the day (7 days ago to now) and the y-axis is the count of transactions for that category.
My problem is that I do not know "what" categories these may be before-hand. I tried using a "pivot" in my sql query: this gives me a result set with each day as columns and counts for each category. I cannot create my line series in the design view because I don't know the categories (could be 2, 15 ect.)
Is there a way, after the chart is bound to this result set, to get that set, iterate through it, construct a "custom" result set with the "categories" as columns, and programatically add the series to construct the chart? Thanks so much