
I am developing a barchat where the there are 3 items: A, B, and C. A is green, B is blue, and C can be any color. I want to display a legend on this plot with three boxes (standard for legends and barcharts) where the color corresponds to the item. However, for item C, is it possible to have the legend box color be a rainbow or spectrum ?
Note, this is different from a single spectrum for a legend

) the glyph. I couldn’t quite get it to work, but I suspect that might be possible. Not sure if that is too goofy for your needs though 

