Color of legend item when set to not visible

4 posts, 1 answers
  1. Anders
    Anders avatar
    30 posts
    Member since:
    Jul 2013

    Posted 15 Jan Link to this post

    I have chart with 3 or 4 LineSeries of the last years. In codebehind I set the visibility of the oldest serie to false, so that the chart is not to overcrowded.

    The color of this LineSerie turns into a very light grey. Is it possible to change this "disable" color?

     

    Anders Pedersen

  2. Answer
    Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 18 Jan Link to this post

    Hi Anders,

    You can define the color of the text of the inactive items in the Chart's legend in a similar way:
    function pageLoad() {
        var chart = $find("RadHtmlChart1").get_kendoWidget();
        chart.setOptions({
            legend: {
                inactiveItems: {
                    labels: {
                        color: "#ff0000"
                    },
                    markers: {
                        color: "#ff0000"
                    }
                }
            }
        });
        chart.redraw();
    }


    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anders
    Anders avatar
    30 posts
    Member since:
    Jul 2013

    Posted 22 Jan in reply to Vessy Link to this post

    Tanks Vessy
  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 22 Jan Link to this post

    Hi,

    You are welcome, Anders. Feel free to reach us again in case further assistance on the matter is needed.

    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top