“The great and the powerful Bostok”!!
It is a great honor and an immense pleasure to receive your reply, thank you very much.
I have applied your code and now I have sorted the y axis. I have edited inserting one character, because I want reverse sorting, to have North-South ordering (these are Italian cities, and the colors are related to heat waves).
It works great.
However, I take the opportunity to talk to you about two related things, which seem important to me.
The first one is closely related. This function, to sort the order of ordinal axes, using one of the dataframe fields, seems to me an option that should be ready already. Something that can immediately interest all users who need to use this type of graph.
I know, observable plot doesn’t think like that, but it would be nice to change it so that the sort option is available. Also in cell chart.
To be able to simply add something like
sorty: "fieldname",
reverse: true
Before writing here, I tried to sort the dataframe by latitude, but then the sorting by citta was forced in any case. Another option might be to make it depend on the ordering of the dataframe.
The second one is related to tooltips. Related to this calendar view, I have the URLs of the heatwave bulletins in PDF.
I would like to be able to build a sticky tooltip, in which I have an hyperlink to open then PDFS in a _blank window.
In the same way I can do in this map in datawrapper.
I have tried to build this map using Plot, but it’s not a native way to do it this in Plot.
So I take advantage of having you here, to tell you that I think it’s very useful to be able to customize the tooltips.
Thank you very much