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

RadHtmlChart Stacked Chart ot working correctly

2 Answers 54 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Timothy
Top achievements
Rank 1
Timothy asked on 29 Oct 2019, 03:45 PM

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 Answers, 1 is accepted

Sort by
0
Timothy
Top achievements
Rank 1
answered on 30 Oct 2019, 08:03 PM
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
0
Timothy
Top achievements
Rank 1
answered on 30 Oct 2019, 08:05 PM
Here is the cleaned up code
Tags
Chart (HTML5)
Asked by
Timothy
Top achievements
Rank 1
Answers by
Timothy
Top achievements
Rank 1
Share this question
or