Column Charting Legend

7 posts, 0 answers
  1. Linden
    Linden avatar
    4 posts
    Member since:
    Mar 2016

    Posted 24 Mar Link to this post

    The legend colors are not matching the colors I have set for the individual series in my bar chart. I have read through several different forum topics that were supposed to have a  solution, but none of them seem to work. I am using hexadecimal web colors and assigning them to Series.Color as specified in "http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-series.color".   How can I CUSTOMIZE or SET the legend colors as well?  I have read the following forum topics, but neither solve the problem. 

     

    http://www.telerik.com/forums/legend-color-change#Feo0EzBZ6E6jA3Ns-3WOjQ

    http://www.telerik.com/forums/stack-bar-chart#HvKBqPuqP023kBLIQHAnrA

  2. EZ
    EZ avatar
    60 posts
    Member since:
    May 2015

    Posted 24 Mar in reply to Linden Link to this post

    This DOJO shows the correct color legend:

    http://dojo.telerik.com/@ezanker/ITOdO

    Can you edit it to reproduce your issue?

  3. Kendo UI is VS 2017 Ready
  4. Linden
    Linden avatar
    4 posts
    Member since:
    Mar 2016

    Posted 25 Mar in reply to EZ Link to this post

    I see what the issue is now.  I need to upgrade the version I am working with. Only after I switched to the 2014 version, was  I able to reproduce the issue. I just have to upgrade and all should work fine. 
  5. Linden
    Linden avatar
    4 posts
    Member since:
    Mar 2016

    Posted 28 Mar Link to this post

    Upon updating to the latest version, I am still having issue getting the legend to display the same colors as the columns in the charts. Has anyone else reported having similar issues?

     

  6. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 29 Mar Link to this post

    Hi,

    There are not any known reasons for the series color option not to be applied to the legend. The problem could occur if you are using the colorField option which will set the color for individual points but not for the series. If that is the case and the color field for all points in the same series is the same then you can use the dataBound event to set the series color - example. If this is not scenario then please provide a runnable sample that replicates the problem or at least the code that you are using so I can try to replicate it on my side.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. Linden
    Linden avatar
    4 posts
    Member since:
    Mar 2016

    Posted 29 Mar in reply to Daniel Link to this post

    Thank you very much for your assistance. I will keep this method in mind when I need to dynamically assign colors to the chart. For the time being I was able to work around it by using seriesColors which seemed to work for what I was trying to do. You may close this ticket. 
  8. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 31 Mar Link to this post

    Hi again,

    OK, I am closing the ticket but if you have the time could provide a repro sample that demonstrates the issue? It might be a bug that requires fixing.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready