telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.91k forks source link

Unable to configure LegendItem for Pie and Donut Charts #7778

Closed kendo-bot closed 4 months ago

kendo-bot commented 7 months ago

Bug report

The legend items cannot be configured in the SeriesDefaults() configuration of the Pie Chart or Donut chart.

Reproduction of the problem

1) Create a Pie or a Donut Chart with a visible legend.

2) Add the SeriesDefaults() configuration and try to add the LegendItem() option to set the type of the legend items.

.SeriesDefaults(seriesDefaults =>
{
    seriesDefaults
            .Pie();
            .LegendItem(x => x
                .Type("line")
                .Line(y => y.DashType(ChartDashType.Solid)));
})

The Legenditem() option is available for Telerik UI for ASP.NET Core Pie Chart.

Expected/desired behavior

The legend items of the Pie Chart must be configurable through the SeriesDefaults() option.

Environment

aleksandarevangelatov commented 7 months ago

Also reported in ticket 1647129