Skip to content
Advertisement

How to reorder measures in customizing hover label appearance plotly?

I’m making an interactive map, there is no problem with the map itself, there is a problem with the way the elements are located in the additional hover marks. Is there any way to change this order? Is it possible not to display latitude and longitude indicators there?

Sample code:

JavaScript

What do I get: enter image description here

How to change the order in this output? I would like to remove the latitude and longitude, or at least move them to the end of the output.

Advertisement

Answer

This is covered here: https://plotly.com/python/hover-text-and-formatting/#disabling-or-customizing-hover-of-columns-in-plotly-express

JavaScript

create data frame

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement