Add dynamic legend for grouped/clustered points