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

Adding class attribute to series

3 Answers 73 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Marina
Top achievements
Rank 1
Marina asked on 17 Nov 2016, 12:43 PM

Hi,

We are trying to use the Telerik Testing Studio to automate testing.

We're running into problems testing Kendo UI charts, since there's no way to hook to the series in the chart.

Is there a way to configure the chart to add classes (or ids or any other usable attributes) to each of the series (and to each of the bars in the series in case of stacked bar chart) ?

If not, how can we use your tool to inspect your widgets ?

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 21 Nov 2016, 09:03 AM

Hello Marina,

Indeed we do not have such option to define class or attributes to be applied to the Chart. What we do is to offer an ability to define visuals. Please refer to the http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart API reference of the Kendo UI Chart to review if some of the available visuals will suit your scenario. 

Regards,
Boyan Dimitrov
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
0
Marina
Top achievements
Rank 1
answered on 21 Nov 2016, 11:21 AM

I don't understand how using visuals help us, as those are rendered into <svg>, <g>, <path>, etc. elements.

How can your testing studio connect to those, as it uses ids, classes and such to find the elements ?

0
Boyan Dimitrov
Telerik team
answered on 23 Nov 2016, 09:50 AM

Hello Marina,

Actually the visuals will not help you in this case because it does not affect the rendered html. I am afraid that there is no way to modify the rendered html (adding classes, ids or attributes to the elements). 

Regards,
Boyan Dimitrov
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Tags
Charts
Asked by
Marina
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Marina
Top achievements
Rank 1
Share this question
or