SandDance icon indicating copy to clipboard operation
SandDance copied to clipboard

The Direct color option is disabled and I have data with hex colors

Open mscherotter opened this issue 2 years ago • 10 comments

I have data with a hex value but the option to use direct color is disabled.

image

image

mscherotter avatar Feb 10 '23 20:02 mscherotter

Does the Column Types dialog show that it Is Color Data?

danmarshall avatar Feb 10 '23 22:02 danmarshall

It is not listed there and it is not in every row - some values do not have an Avatar color column.

mscherotter avatar Feb 10 '23 23:02 mscherotter

I think null values may cause the column to invalidate as color. Can you populate a default color value in your data?

danmarshall avatar Feb 10 '23 23:02 danmarshall

I populated with default values and see them in the column types: image

but the direct color option is still disabled: image

mscherotter avatar Feb 11 '23 01:02 mscherotter

Looks like #RRGGBB formats are being parsed as date types 🤨 I'll keep digging on that issue. Workaround for now would be to use rgb(rr,gg,bb) format.

Once it's enabled it will appear in the menu under a Direct Color heading: image

danmarshall avatar Feb 11 '23 02:02 danmarshall

Not sure if this is related: I have #rrggbb colors and they are detected as direct color "field csscolor contains direct color", but are read / displayed wrong. The RGB values are mapped to XYZ and the plot is colored by csscolor (#rrggbb). The plot should have a smooth color gradient: grafik Here is the .csv

Same data in plotly: grafik

Tell me when I should open a new issue...

HorstBaerbel avatar Feb 28 '23 19:02 HorstBaerbel

@HorstBaerbel can you provide a repro case?

danmarshall avatar Apr 17 '23 23:04 danmarshall

@HorstBaerbel can you provide a repro case?

It's a bit on the big side, but I hope it helps: colorfit_objects.csv

HorstBaerbel avatar Apr 19 '23 18:04 HorstBaerbel

@danmarshall The color error has not been fixed for me. csscolor is still wrong (same as last two images and can repo it with the casv). Should I open a new issue?

HorstBaerbel avatar May 12 '24 23:05 HorstBaerbel

@HorstBaerbel - I've just reopened this issue. It would help if we could get a smaller dataset which repro's the error.

danmarshall avatar May 13 '24 22:05 danmarshall