jolars / eulerr

Area-Proportional Euler and Venn Diagrams with Ellipses
https://jolars.github.io/eulerr/
GNU General Public License v3.0
129 stars 18 forks source link

Display big numbers with a comma #106

Open IStevant opened 1 year ago

IStevant commented 1 year ago

Hi,

would it be difficult to add an option to be able to see the big numbers with commas to make them easier to read?

In the following example I added the total number of items to the labels with paste() and prettyNum() to make them easy to read. I couldn't find a way to apply prettyNum() to the quantities.

Zhao_XX_vs_XY

jolars commented 1 year ago

It's not currently possible to do this, but it's a good suggestion. A good approach would be to add an argument that allows the user to specify a function that formats the numbers. Then you could use prettyNum or format or whatever you want.