Q:

Removing space between objects of a shapefile

I'm trying to visualise the results french presidential elections of 2017 by departements. I found a shapefile of France with departements here
When I try to export this file in TopoJSON format from mapshaper.org it has a lot of space between mainland France and some of the departements.

Is there a way I could make it look like this

If someone has a shapefile already in this format I'd be very thankful if they could share it with me.

A:

Yes, you can physically move the polygons of the outer territories in geographic data, but this would degrade data unnecessarily.
The much better solution hinted at by @ThingumaBob is to simply use multiple map frames when designing your export. Create a map frame for each outlying territory, then move those around on your sheet layout for printing/viewing the result version. This also allows you to use different scales for each departement, add labels and much more, if desired.
Check the QGIS documentation on how to accomplish this.
As a basic rule: Most GIS will separate data exploration and analysis from actually rendering and exporting map products, because there are many very valid reasons to depart from geographic 'truth' for the sake of readability of a map product.

A:

In d3 the correct way to do this is to use a composite projection. Here are plug-ins that specify composite projections for France:

https://github.com/rveciana/d3-composite-projections (d3v4 and d3v3)
https://github.com/seeschloss/francedom (unmaintained as of 20.12.2019)

