Genie Discord forum

Author AvatarMet
11/6/2022, 1:23:03 AM

Howdy.

I'm having some issues with the syntax when trying to get custom colorscale to work with the PlotDataMarker.

marker = PlotDataMarker( size = [20, 30, 15, 10], color = [10.0, 20.0, 40.0, 50.0], cmin = 0.0, cmax = 50.0, colorscale = "Greens", colorbar = ColorBar(title_text = "Some rate", ticksuffix = "%", showticksuffix = "last"), line = PlotlyLine(color = "black") )

I can get the suggested strings to work:(Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd)

but not the custom mapping: "a mapping for the lowest (0) and highest (1) values are required. For example, [[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]"

Does anyone have any tips with regards to the syntax?