added 3d support for scatterplot visualization