Framework for building visualisation applications