added scatterplot support