finish dotplot implementation