Funnel Chart using SQLDataSource

6 posts, 0 answers
  1. Dusty
    Dusty avatar
    7 posts
    Member since:
    Jan 2015

    Posted 29 May 2015 Link to this post

    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.
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 02 Jun 2015 Link to this post

    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
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dusty
    Dusty avatar
    7 posts
    Member since:
    Jan 2015

    Posted 10 Jun 2015 in reply to Danail Vasilev Link to this post

    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.
  5. Dusty
    Dusty avatar
    7 posts
    Member since:
    Jan 2015

    Posted 10 Jun 2015 Link to this post

    Please disregard.  I got it to work how you said, however, how can I set the labels to the chart values?
  6. Dusty
    Dusty avatar
    7 posts
    Member since:
    Jan 2015

    Posted 10 Jun 2015 Link to this post

    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?
  7. Dusty
    Dusty avatar
    7 posts
    Member since:
    Jan 2015

    Posted 10 Jun 2015 Link to this post

    Everything is working.  Thanks for the help.  
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017