A compiler for a data visualisation tool