Recently donut chart was updated and existing classes for its elements like chart-container or chart-label were removed. This is problematic from automation point of view as there's no unique class names/ids/tags left to distinguish widget's components, forcing us to build ugly locators with either redundant DOM traversing or element indexing. Returning classes (or bringing in anything in exchange, like ids, labels, whatever) would help us a lot. Ideally i'd like to see one for entire widget, one for labels, one for chart container and one for chart legend.
Also i'm not sure how we should fetch actual values for donut chart. For example, let's take a look at "Blue theme donut chart" in docs:

There're no values for cats/dogs/birds either visually or in DOM. The only possible way is to mouse over each bar separately and wait for tooltip with value to appear. But since tooltips aren't present in DOM until bars are in focus, it's not an option to rely on them at least in automation. Imo labels with name/value pairs should be added to nodes in DOM.
Recently donut chart was updated and existing classes for its elements like
chart-containerorchart-labelwere removed. This is problematic from automation point of view as there's no unique class names/ids/tags left to distinguish widget's components, forcing us to build ugly locators with either redundant DOM traversing or element indexing. Returning classes (or bringing in anything in exchange, like ids, labels, whatever) would help us a lot. Ideally i'd like to see one for entire widget, one for labels, one for chart container and one for chart legend.Also i'm not sure how we should fetch actual values for donut chart. For example, let's take a look at "Blue theme donut chart" in docs:

There're no values for cats/dogs/birds either visually or in DOM. The only possible way is to mouse over each bar separately and wait for tooltip with value to appear. But since tooltips aren't present in DOM until bars are in focus, it's not an option to rely on them at least in automation. Imo labels with name/value pairs should be added to nodes in DOM.