Completed
Last Updated: 26 Apr 2022 13:31 by ADMIN
Release R2 2022
Stan
Created on: 31 Mar 2022 08:52
Category: HtmlChart
Type: Feature Request
0
Add configuration options for highlight's InactiveOpacity

Currently, the HighlightAppearance of the Series does not have a property that controls the InactiveOpacity:

As a temporary workaround, this can be set through the options in the OnKendoWidgetInitializing event:

<script>
    function OnKendoWidgetInitializing(sender, args) {
        var series = args.series[0]
        series.highlight = series.highlight || {};
        series.highlight.inactiveOpacity = 0.2
    }
</script>
<telerik:RadHtmlChart ID="RadHtmlChart5" runat="server" BorderColor="Fuchsia" BorderStyle="Solid" BorderWidth="1px">
    <ClientEvents OnKendoWidgetInitializing="OnKendoWidgetInitializing" />
    <PlotArea>

        <Series>
            <telerik:PieSeries StartAngle="90">
                <%-- This is how it should be configured after the feature request --%>
                <%--<HighlightAppearance InactiveOpacity="0.2" />--%>

                <SeriesItems>
                    <telerik:PieSeriesItem Name="Slice1" Y="60"></telerik:PieSeriesItem>
                    <telerik:PieSeriesItem Name="Slice2" Y="40"></telerik:PieSeriesItem>
                </SeriesItems>
            </telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>

0 comments