I was playing around with the idea of creating a color legend built from a Linear Gauge with no color segments or at least a solid color that matches each distinct value.
If I had Product A, Product CC, Product H, Product D
Here is a simple mock-up where it only shows the default Green, but it should show a unique color for each value.
My search did not return any similar attempts like this..
Hope this resolve your issue. If the issue is solved please mark the answer with Accept as Solution & like it. If you want to go quickly, go alone. If you want to go far, go together.