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

Stacked Area Charts - Synchronized Data?

4 Answers 52 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 28 Jul 2017, 08:27 AM

Hello,

 

I recently made a few charts in my web application with the Kendo UI for MVC and then I realized that the stacked area chart doesn't display the values the right way. The different areas are stacked, but not with the right date.

The data list structure is like this:

     Group: "LINE1", Date: "2017-01-01 00:00:00", Value: "210"

 

I think I have already found a similar question to this problem: http://www.telerik.com/forums/715942-chart-not-displaying-all-category-axis-values

Is this problem already solved or do I need to fill up my list with the same amount of data points for every group?

 

Thanks,

Stefan

   

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Aug 2017, 06:52 AM
Hello Stefan,

After different testing scenarios, I noticed that currently, the dataItem numbers have to match, as otherwise the data will be misaligned:

http://dojo.telerik.com/icAbI ( The 2. AAPL is missing the first month's data, but visually it is missing the last ones.)

I will forward this to the developer's team, to investigate if this is the same effect or it is a new issue which can be fixed.

Apologies for the inconvenience this may cause you.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Stefan
Telerik team
answered on 09 Aug 2017, 01:21 PM
Hello Stefan,

I received the report from the developer's team.

We introduced the property series.categoryField which will use the values compare to the categoryAxis.field which will use indexes.

If the series.categoryField is used, the data should be shown correctly even if the number of items is different:

http://dojo.telerik.com/icAbI/3

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.categoryField

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Stefan
Top achievements
Rank 1
answered on 09 Aug 2017, 01:45 PM

Hello Stefan,

great! Thanks for your answer.

How can i update my Kendo.MVC.dll file?

 

Best Regards,

Stefan

 

0
Stefan
Telerik team
answered on 10 Aug 2017, 08:45 AM
Hello Stefan,

The following article is demonstrating how all of the Kendo UI related fields including the Kendo.MVC.dll can be updated:

http://docs.telerik.com/aspnet-mvc/introduction#upgrade

"Change the reference to the new Kendo.MVC dll. Verify that the dll refers to the correct ASP.NET MVC version."

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Stefan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or