Skip to content

do-me/deckgl-label-collision

Repository files navigation

Deckgl Label Collision

A basic scatterplot example with deck.gl avoiding label collision.

Two sliders dynamically set the label font size and the label collision size (the "buffer" around the labels).

Examples

Visualizing tSNE for 169 SDG targets

Interactive App: https://do-me.github.io/deckgl-label-collision/sdg sdg_labels

Generating arbitrary sample data

Interactive App: https://do-me.github.io/deckgl-label-collision deckgl_label_collision

Why?

Due to deck.gl's reactive paradigm, updating deck.gl is not as straight forward as e.g. Leaflet. Working examples are sometimes even more useful than the docs. I hope I'll save you some dev time!

I created this repo mostly for myself for testing labels in:

About

A scatterplot example with deck.gl and dynamic label collision settings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published