smaller bugfixes

- show only one legend when only primary data set is provided
Revert "smaller bugfixes"

This reverts commit 8de378e5c07989fb21ba4dd8de677e1fb82fefd7.