How to sort stacked column chart

4 posts, 1 answers
  1. Geroj
    Geroj avatar
    6 posts
    Member since:
    Jun 2016

    Posted 23 Jun Link to this post

     

    1) I would like to know how to sort stacked column chart in descending order of the total value of the columns (sum of stacked value in a column) ?

    2) How to have the legend color matches the color of the stacked columns ?

    Here is  my dojo code

    Any help would be appreciated.

     

  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 27 Jun Link to this post

    Hi Geroj,

    Up to the questions
    1). I am not quite sure if I understand correctly what the expected outcome is - could you please elaborate a bit more?
    2). By design the legend shows the entire series colors. In order to achieve the expected result here you should manually set the colors in the dataBound event. For your convenience below is the modified dojo:  

    http://dojo.telerik.com/@Iliana/OdiqeZ

    Regards,
    Iliana Nikolova
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Geroj
    Geroj avatar
    6 posts
    Member since:
    Jun 2016

    Posted 27 Jun in reply to Iliana Nikolova Link to this post

    Hi Iliana Nikolova,

    I'm trying to achieve something like that. sorting order .

    the number represent the order in which I want my chart to be sorted. The column with the highest value should be at first,the one with the second highest value should be the second one and so on.

     

    Regards, 

    Geroj

  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 29 Jun Link to this post

    Hi Geroj,

    Thank you for the details. I am afraid this scenario is not supported by Kendo UI Chart and there is no a suitable workaround which I could suggest. Please accept my apologies for any inconvenience this may cause.

    Regards,
    Iliana Nikolova
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top
Kendo UI is VS 2017 Ready