I'm trying to create a RadHtmlChart Funnel chart but connect it to a sqldatasource. I am able to set the datasourceID just fine but I can't fine any examples of how to set the funnelseriesitem to the values being returned from my dataset. Can someone give me an example of how to set these values? The example demo only shows hard-coded values and the example for connecting to a sqldatasource is for a different type of chart.
5 Answers, 1 is accepted
0
Hello Dusty,
You can find an example of a data-bound chart to an SqlDataSource here - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/database/defaultcs.aspx. You can use the same approach for other chart types. The only difference is in the data-bound specific properties which can be found in the intellisense.
As for the Funnel series data-bound property responsible for the y-values you can use the DataFieldY one.
Regards,
Danail Vasilev
Telerik
You can find an example of a data-bound chart to an SqlDataSource here - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/database/defaultcs.aspx. You can use the same approach for other chart types. The only difference is in the data-bound specific properties which can be found in the intellisense.
As for the Funnel series data-bound property responsible for the y-values you can use the DataFieldY one.
Regards,
Danail Vasilev
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
0
Dusty
Top achievements
Rank 1
answered on 10 Jun 2015, 01:40 PM
Ok I can set the value of the data-bound property of the Funnel Series of the DataFieldY value, but when I have multiple values to fill the funnel chart, I don't know how to set the funnelseriesitem value to each value in my dataset to represent the funnel chart. Right now, by setting the DataFieldY value I get a funnel with only the first value in my dataset.
0
Dusty
Top achievements
Rank 1
answered on 10 Jun 2015, 02:15 PM
Please disregard. I got it to work how you said, however, how can I set the labels to the chart values?
0
Dusty
Top achievements
Rank 1
answered on 10 Jun 2015, 02:16 PM
Please disregard my last reply. I was able to get the chart to work how you stated, however, how can I set the labels(name) to the values in the chart?
0
Dusty
Top achievements
Rank 1
answered on 10 Jun 2015, 02:38 PM
Everything is working. Thanks for the help.