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

[Solved] mutiple axies: how to make bars stacked for the left axis but not for the left?

5 Answers 191 Views
Chart for HTML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yanli
Top achievements
Rank 1
Yanli asked on 18 Nov 2013, 10:14 PM
I have a chart which has three data series ("Blue", "Orange", and "Green") with dual axes. I want the "Blue" and "Orange" bars on the left axis stacked, and the "Green" bar on the right axis not stacked. I set stack to "false" for the "Green" data series, but it still stack to the left bars. I set up the JSBIN example here: http://jsbin.com/ugOyihi/1/edit

if I switch the "Green" series(stack set to false) to the left axis, and the "Blue" + "Orange"(stack set to true) to the right axis, I expect to see the green bar stands by itself, and the blue+orange bar stacked, but in the jsbin example, all the bars are separate: http://jsbin.com/afOBaxiB/1/edit

It looks like it only takes the first "stack" value???

Your help is highly appreciated!
Yanli

5 Answers, 1 is accepted

Sort by
0
Yanli
Top achievements
Rank 1
answered on 18 Nov 2013, 10:17 PM
sorry the title should be "multiple axes: how to make bars stacked for one axis but not for the other?"
0
Iliana Dyankova
Telerik team
answered on 19 Nov 2013, 03:51 PM
Hello Yanli,

In order to achieve the expected result you should point different stack names to the separate series. For your convenience here is the updated jsBin example.

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
Yanli
Top achievements
Rank 1
answered on 19 Nov 2013, 10:59 PM
thank you, that solves the left bars stacked, right bar separate issue. 

But the right bar doesn't really take the right axis. I update the right data series to make all data points 100+ to differ from the left data series, the right bar displays incorrectly. please see the updated sample here: http://jsbin.com/ugOyihi/5/edit
0
Yanli
Top achievements
Rank 1
answered on 21 Nov 2013, 07:47 PM
any updates on the axis issue?

Thanks!
0
Iliana Dyankova
Telerik team
answered on 22 Nov 2013, 10:56 AM
Hi Yanli,

Apologies for not getting back to you earlier. 

I discussed the case with my colleagues and it appears this is the default behaviour of stacked chart at this point and it cannot be changed. We will appreciate it if you submit this suggestion as a feature request at Kendo UI UserVoice page - this way the community would be able to evaluate it and if the suggestion gains popularity we will consider its implementation 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!
Tags
Chart for HTML
Asked by
Yanli
Top achievements
Rank 1
Answers by
Yanli
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or