We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

I can not create StackingColumnSeries dynamically from code behind


I have to create chart dynamically for my project (see attached file).
When I create LineSeries or ColumnSeries, it works.
But when I create StackingColumnSeries, Visual Studio says that an "object reference not set to an instance of an object".

What I need to create some StackingColumnSeries ?


Attachment: StackingColumn_Chart_Demo_1febbc31.zip

3 Replies

SJ Sumathi Jayaraj Syncfusion Team July 15, 2014 11:27 AM UTC

Hi Dario,
We are able to reproduce the issue “Exception thrown while creating StackingColumnSeries dynamically from code behind”, we have created incident "127350" for this reported issue. Our support engineer will assist you through incident under your Direct Trac account. 

Our Direct Trac support system can be accessed from the following link: 


You can define primary axis and secondary axis for avoid this null reference exception in StackingColumnSeries. 

Please let us know if you require further assistance on this.


DQ Dario Quispe July 15, 2014 03:49 PM UTC

Thanks, it works when I define primary axis and secondary axis.

MA Mohammed Azarudeen Syncfusion Team July 16, 2014 10:49 AM UTC

Hi Dario,


Thanks for your update. We are glad that the issue has been resolved at your end.


Could you please let us know whether you are in need of any other assistance from us?



Mohammed Azarudeen.

Live Chat Icon For mobile
Up arrow icon