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

Stacked area chart not working when grouped

3 Answers 161 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Achilles
Top achievements
Rank 1
Achilles asked on 10 Aug 2015, 11:05 AM

Hi,

I'm trying to create a area chart where I can stack data in separate groups . What I see is that if stack is set to true, all the series are put on a single stack, irrespective of the stack-name assigned. But if I change one of the groups to bars, then the area-bar combination renders correctly. I've also tried to move one of the groups to a different axis, but with the same result .

Please have a look at the attached sample. There are two buttons at the bottom of the chart to toggle between 2 stacked area charts & 1 stacked area + 1 stacked bar chart combination . 

 

Best Regards

 Achilles

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 12 Aug 2015, 07:32 AM
Hi Achilles,

The area and line series do not stack by the same rules as column charts and stacking these types of charts into different stacks is not supported. If you have a minute, you could file a feature request at our UserVoivce portal - this way the community would be able to vote / comment it and we will consider this feature for future releases.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Achilles
Top achievements
Rank 1
answered on 13 Aug 2015, 09:31 AM

Hi Iliana,

In my ​example I'm stacking different object types using different axes. I've modified the sample to add an option to stack by columns. What I see is that, the columns stacks by a different rule (​correct rule), which also makes sense as 1 set of columns represent a count of people tied to 1 Y-axis , whereas the other set of columns is tied to a different Y-axis which represents a different dimension, area. So the column charts correctly stacks them separately. But the area charts stacks the 2 axis together, hence adding the number of people to amount of area. 

I wanted to follow your advice and add a new feature request. But I'd appreciate your second opinion given my description above. Please have a look at the re-worked sample. 

 Regards

 Achilles

 

 

0
Iliana Dyankova
Telerik team
answered on 17 Aug 2015, 09:03 AM
Hi Achilles,

When area series are stacked, they cannot be associated with different value axes. Please excuse us for any inconvenience this may cause.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Achilles
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Achilles
Top achievements
Rank 1
Share this question
or