ladybug-tools / spider-2020

Your 2020 3D happy place for online browsing of building data files
http://ladybug.tools/spider-2020/
MIT License
4 stars 1 forks source link

COVID-19 Statistics: Add tooltip on hover #1

Closed paulmasson closed 4 years ago

paulmasson commented 4 years ago

@theo-armour how about adding a tooltip displaying underlying data when hovering over a box? That would allow one to distinguish the test box off Africa from the real data.

P.S. never thought of using lookAt to rotate objects. Nifty trick!

theo-armour commented 4 years ago

@paulmasson

See https://www.ladybug.tools/spider-2020/cookbook/covid-19-statistics-on-globe/dev/

P.S. never thought of using lookAt to rotate objects. Nifty trick!

it's one of the oldest Three.js examples. and it's one I asked Ricardo to do.

and, like me, it's cheap and cheerful

paulmasson commented 4 years ago

@theo-armour the two test boxes display mouse-over data for Hubei. Is that intended?

theo-armour commented 4 years ago

@paulmasson test box fix is cooking

paulmasson commented 4 years ago

@theo-armour consider using tooltips rather that info in the sideboard. A bit more immediate.

theo-armour commented 4 years ago

@paulmasson

See latest

https://www.ladybug.tools/spider-2020/cookbook/covid-19-statistics-on-globe/covid-19-statistics-on-globe-2020-03-15-17.html

Which type of pop-u p do you prefer:

image

or

image

paulmasson commented 4 years ago

Rounded better

theo-armour commented 4 years ago

@paulmasson

Done. Cynthia agrees