Mentions légales du service

Skip to content

Plot export

Ludovic DAVID requested to merge plot into main

@x-KBATZI

Hello !

I have not the time lately to work on that, but here is a branch with some buttons to download the png/svg/code

It will not work for everything, you need to add a way to get the code as string as you can see in some part of the code. (for now, I have not found a really better way, when I've more time, will try to think about it)

Also, I haven't extracted the data now, it can be either downloadable inside plot code (but that's probably not a good way to export it, notably for big datasets), so it's surely better to export some csv or json that be loaded in Observable.

This merge request allows you to see the code modified for the export. It's not particularly cleaned up, but you can see the point.

Merge request reports