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

Donut chart displays zero value labels in latest version #7450

Closed eyupyusein closed 1 year ago

eyupyusein commented 1 year ago

Bug report

Somewhere between 2022.2.510 and 2023.2.606 the Donut chart started to show zero value item labels.

Reproduction of the problem

Dojo with new version: http://dojo.telerik.com/UFIMOBab/3

image

Expected/desired behavior

Zero value record should not be visible. Here is a dojo with an older version:

https://dojo.telerik.com/apAYOJIf/2

image

eyupyusein commented 1 year ago

After further technical conversations with the Dev Team this behavior is decided to remain as a breaking change. The reason for the change was that items with value 0 couldn't be displayed in the old version even when the user wanted them to.

In the newer versions now, after the change, items with value 0 will be included in the rendered Donut chart by default, but they can be explicitly hidden using:

  1. Filtering
  2. Setting the visible property to false: https://dojo.telerik.com/agIkuyoD