Chart component keyboard event support.

1 Answer 62 Views
Accessibility Charts
Ferg
Top achievements
Rank 1
Ferg asked on 16 Jun 2023, 12:17 PM

Hi All,

IS there any chance to add keyboard event support like tab stop for Chart component interaction events?

 

Or is there any demo to best practice of doing that?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 20 Jun 2023, 06:08 AM

Hello Ferg,

Currently the Chart component does not expose onKeyDown event, but it is possible to manually attach event listener to the SVG element. I have prepared an example demonstrating such custom implementation:

As you will notice, I am also setting the tabIndex to the SVG element to "0", so it can be focusable.

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Tags
Accessibility Charts
Asked by
Ferg
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or