The following macro was developed in order to use LibreOffice charting capabilities with data stored in a SQL database.