DatawRappr icon indicating copy to clipboard operation
DatawRappr copied to clipboard

dw_data_to_chart() upload format

Open untergeekDE opened this issue 3 years ago • 2 comments

Suggest changing the conversion formula from readr::format_csv() to readr::format_tsv() to be more forgiving towards commas in string constants. Helps a lot with tables.

Had trouble uploading HTML Unicode characters (e.g. "⬤") but this might be a bug in the Datawrapper API

untergeekDE avatar Mar 08 '21 11:03 untergeekDE

Thanks for opening this issue. I guess there are actually two problems, right?

For the first one: could you please provide a reproducible example of a dataframe that causes trouble when uploaded?

For the second one: I guess this depends on the input field you're adressing. You may want to forward the issue to Datawrapper's support team. In case it's an DatawRappr-issue feel free to open another topic.

munichrocker avatar Mar 17 '21 15:03 munichrocker

There is a new function argument included in https://github.com/munichrocker/DatawRappr/commit/982b49449e4139647f2cc215a9d271e5a28502e7

Could you please try if that fixes your issue? dw_data_to_chart(x, chart_id, format = c("tsv")

munichrocker avatar Sep 13 '21 14:09 munichrocker