Stacked Charts with null Values

5 posts, 2 answers
  1. John
    John avatar
    7 posts
    Member since:
    Dec 2015

    Posted 08 Dec 2015 Link to this post

    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

  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 10 Dec 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. John
    John avatar
    7 posts
    Member since:
    Dec 2015

    Posted 10 Dec 2015 in reply to Iliana Nikolova Link to this post

    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

  5. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 14 Dec 2015 Link to this post

    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!
     
  6. John
    John avatar
    7 posts
    Member since:
    Dec 2015

    Posted 24 Jan in reply to Iliana Nikolova Link to this post

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

    Your solution worked. 

    Thanks

Back to Top
Kendo UI is VS 2017 Ready