RadHtmlChart Stacked Chart ot working correctly

3 posts, 0 answers
  1. Timothy
    Timothy avatar
    3 posts
    Member since:
    May 2018

    Posted 29 Oct Link to this post

    I am experimenting with dynamically creating chart series using the RadHtmlChart and as long as I I just make a normal column series everything works just fine creating the series dynamically. However once I change the code to try to make the series stack on each other by setting series.stacked = true in the code dynamically creating the series the chart data really messes up. The last series created takes up the entire chart height and if the value was say 70, the y-axis value now says 700000 but the column tooltip still says the data is 70 for the series. The two series created before the last series do not display at all. 

     

    Attached are example pictures of my issue and the code I am using to dynamically create the series

  2. Timothy
    Timothy avatar
    3 posts
    Member since:
    May 2018

    Posted 30 Oct Link to this post

    I figured it out, in the data table I was creating the chart did not realize correctly that the columns Test1, Test2, and Test3 were integers. After setting the type to int32 in the datatable creation the chart works as it should. Attached is the working code
  3. Timothy
    Timothy avatar
    3 posts
    Member since:
    May 2018

    Posted 30 Oct in reply to Timothy Link to this post

    Here is the cleaned up code
Back to Top