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

Stacked Charts with null Values

4 Answers 150 Views
Charts
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 2
Iron
John asked on 08 Dec 2015, 07:49 PM

Hi,

 I'm only just starting out with Kendo UI and one of my first tasks is to build a Stacked Bar chart. I'm hoping you guys can help me out with a few issues I'm having.

 Firstly, here's a link to an example of what I currently have: http://dojo.telerik.com/Ajido

Issue 1: I have three values for my stacks: Alpha, Bravo and Charlie. Charlie is type 'line'. But, in stacks 2 and 4 I don't have a value and want to suppress the Charlie marker. From examples online, I've seen that setting the data to 'null' should suppress the marker. Unfortunately, this doesn't work for me.

 Is this a limitation when using 'line' type in a Stacked chart? Or am I missing something?

 If I can resolve this issue, then I'll ask about the next one!

 Thanks

4 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 10 Dec 2015, 09:53 AM
Hi John,

To achieve the expected result you should use custom logic in the series.markers.visible function. For your convenience here is the updated dojo.

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
John
Top achievements
Rank 2
Iron
answered on 11 Dec 2015, 01:13 AM

Thanks,

I thought the solution might be something like that. The only problem is that if I mouse-over the Legend for that line series, the hidden markers reappear. 

Can I stop that from happening? Or as an alternative have no chart interaction at all when mouse-over or click on the single Legend label?

Thanks

John

0
Accepted
Iliana Dyankova
Telerik team
answered on 14 Dec 2015, 10:13 AM
Hi John,

For this scenario you should use custom logic in the series.highlight option. Here is a dojo which should give a basic idea.

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
John
Top achievements
Rank 2
Iron
answered on 25 Jan 2016, 12:50 AM

Sorry for the slow reply on this. I was off work with a broken collar bone!

Your solution worked. 

Thanks

Tags
Charts
Asked by
John
Top achievements
Rank 2
Iron
Answers by
Iliana Dyankova
Telerik team
John
Top achievements
Rank 2
Iron
Share this question
or