Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Legend Text Styling (To Visualize Hover) #11571

Open
jwedel opened this issue Nov 6, 2023 · 1 comment
Open

Support Legend Text Styling (To Visualize Hover) #11571

jwedel opened this issue Nov 6, 2023 · 1 comment

Comments

@jwedel
Copy link

jwedel commented Nov 6, 2023

Feature Proposal

Proposal

I propose to to add a new fontStyle property (or something similar) to the LegendItem interface.

This should allow at least the following values:

  • 'normal' (DEFAULT)
  • 'bold'
  • 'underlined'

Use Case

We use an on click handler to hide datasets using the legend. This is currently a 'hidden feature' as there is no visual clue to the user that the legend is an interactive user element. You have to know it or read the documentation.

To increase accessibility, we would like to change the text style of the currently hovered element to 'bold' or 'underlined'.

Side Note

This could be a general pattern to implement for other labels in ChartJS.

Possible Implementation

No response

@on3dd
Copy link

on3dd commented Aug 14, 2024

+1 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants