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

Color of legend item when set to not visible

3 Answers 35 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 15 Jan 2016, 10:01 AM

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

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 18 Jan 2016, 04:02 PM
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
0
Anders
Top achievements
Rank 1
answered on 22 Jan 2016, 11:01 AM
Tanks Vessy
0
Vessy
Telerik team
answered on 22 Jan 2016, 12:03 PM
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
Tags
Chart (HTML5)
Asked by
Anders
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Anders
Top achievements
Rank 1
Share this question
or