Make nice high-res charts and graphs

Curious software engineer
Search for a command to run...

Curious software engineer
No comments yet. Be the first to comment.
In this series, I will treat subjects related to software development, software engineering, and related career.
There is a show I love on Twitch on the channel of MisterMV: Game of Rôles. It is an actual play of an original table RPG created by FibreTigre. To help the show during its early days, I decided to create a wiki for it: https://gameofroles.wiki. And ...
It’s the summer holidays, after all. So I wanted to spent some time with my 7 years old daughter to teach her programming. ⌨️ I spent some time before discussing with her some of the basics concept verbally: the different parts of a computer, and bas...

This article is a follow up on my previous one introducing the concept of SE Spectrum: https://sonny.alvesdi.as/a-better-way-to-discuss Existing solutions For long, the easiest way to run a spectrum was to use visual drawing or diagram tools like ...

Introduction to SE Spectrum

One of the greatest tool available on GitHub is Dependabot. For those not familiar with it, in short it's a bot reviewing your list of dependencies and proposing PRs to update them. https://docs.github.com/en/code-security/getting-started/dependabot-...

Photo by Harli Marten on Unsplash As long as I remember I have always been interested by skepticism. And I think one element that really resonated with me has been that conference talk by Phil Plait: https://www.youtube.com/watch?v=FrFRbGjUtJk 15 ...

I found it frustrating when using graphs from Google Drawings into Google Slides that the final render of the graphs is always low resolution. That is why I searched for a way to improve that, and I knew SVG would be the direction to look at. Here is the solution I found.
What you need?
Nothing could be simpler...
First, if you are not working with LibreOffice yet, then download it right away. After, start LibreOffice Calc, import your data and generate the chart you like.
Once your chart is ready, right-click on it and select: Export as image, as displayed in the picture below.
![]()
You will then be invited to select where and how to save your image. The idea is to take profit of the vector format, so we are going to save our image as an SVG file.
![]()
Once saved, open the SVG file into Inkscape and you should see something like below.
![]()
Here you can still edit the picture as you want actually. If you changed your mind and wants to change your colors scheme or resize some elements. Everything is possible. For example here I just added outlines to the pie and its slices.
Then you can export in PNG in high resolution so that you make sure you don't lose quality like in the screenshot below.
![]()
![]()
High Resolution: 300 DPI, Weight: 102 KB
![]()
Low Resolution: 60 DPI, Weight: 13.5 KB
And after all if your communication support allows SVG files (unlike Google Presentation), we recommend you to just save a copy as Plain SVG and display the SVG directly. FYI every modern browser support SVG (https://caniuse.com/#feat=svg).
Plain SVG edited in Inkscape, Weight: 30.4 KB
Plain SVG from LibreOffice, Weight: 3.64 KB