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

Customizable intersection labels #103

Open
fengelniederhammer opened this issue Dec 5, 2024 · 0 comments
Open

Customizable intersection labels #103

fengelniederhammer opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@fengelniederhammer
Copy link

It would be great if we could customize the intersection labels. Specifically, we would like to get rid of thousands separator.

I've had a look into the code, the format seems to be "hardcoded" to toLocaleString, which separates by . or ,, depending on browser settings.

ctx.fillText(values[i].value.toLocaleString(), intersection.text.x, intersection.text.y);

ChartJS' TickOptions offer callback property:
https://github.com/chartjs/Chart.js/blob/57b5c5b78fb2d8504f556bef6e4177735d9929ea/src/types/index.d.ts#L3044-L3047

Would it be possible to implement that the Venn diagrams respect this property and apply it, if set? Many other types of diagrams support that option and we already make great use of it.

User story

Additional context

We have diagrams like these:
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant