WebPlotDigitizer icon indicating copy to clipboard operation
WebPlotDigitizer copied to clipboard

Choose decimal separator

Open spilipenko opened this issue 4 years ago • 6 comments

On my device the decimal separator in the dataset is comma, not a dot. This is very annoying when exporting a .csv. This probably depends on system locale settings and browser (I used Safari, iOS 13.4, Russian language in system settings).

spilipenko avatar Jun 02 '20 18:06 spilipenko

I'm able to relate to this issue when using a spreadsheet program set up differently than either English variant of the UK, Australia, or US. If this is the case, see if your program may be set up to use a separator different from the globally set locale by the operating system.

Referring for LibreOffice Calc, for example, Tools -> Options opens in the language settings opens a field to disengages this default coupling:

step_1

Later, you may mark the still empty spreadsheet in question and define the number format for example in either pattern with comma, or decimal point via Ctrl + 1 (possibly the key-combination in Mac differs from the one in Linux):

step_2_Russian

step_2_English

Eventually you paste the data from the digitizer into the spreadsheet, then successfully recognized as numbers instead of a text string. (This may imply that instead of a comma, you use a different character [e.g., semi-colon] as the column separator when exporting the data.)

nbehrnd avatar Jun 02 '20 21:06 nbehrnd

+1 To trust in the automatism unfortunately sometimes goes wrong ...

Please just add a dropdown menu for the decimal separator, similar to: grafik

jankokert avatar Apr 22 '21 10:04 jankokert

@CubaLibre84 In similar vein as mentioned in issue #114, a late adjustment of the decimal separator issue may be a string search-and-replace in an editor, or scripted relying on regular expressions. For obvious reasons, the example given there for an installation in Linux, sed -i 's/\./,/g' probe.txt, assumes a column separator different from , in first place.

nbehrnd avatar Apr 30 '21 09:04 nbehrnd

OK, so please just add this string search-and-replace, as I don't want to use an editor all the time! The user needs control over the format, independent of the system settings. A warning could be added if the decimal separator and the column separator are equal.

jankokert avatar May 06 '21 07:05 jankokert

I had the same problem! On mac I manage to solve the issue by changing the decimal separator and changed the language of the app to english!

image

image

vpicouet avatar Oct 15 '21 06:10 vpicouet

I also have this problem. Please add a dropdown menu in which the user can manually select the decimal separator.

AntonFetzer avatar Mar 05 '24 13:03 AntonFetzer