✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

How do I add custom tick format (in my case, I need a custom string based on tick value) for colorbar on Countour Plot?

Hi,

I want to show a custom tick label instead of the auto-generated tick value for a colorbar in contour plot.

For example, if automatically generated tick label is 2.74, I want to show tick label is "2.74 (Value: 549.5)"

Where 549.5 is 10 Power 2.74

Hi @apuroopa,

To change the colorbar ticklabels, set colorbar_tickvals, and colorbar_ticktext. The former should be a list of actual values, and the latter a list of values or strings to be displayed