Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/do-me/deckgl-label-collision

A scatterplot example with deck.gl and dynamic label collision settings
https://github.com/do-me/deckgl-label-collision

canvas deckgl labelcollision scatterplot

Last synced: about 14 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](sdg_labels.png)

### Generating arbitrary sample data
Interactive App: https://do-me.github.io/deckgl-label-collision
![deckgl_label_collision](deckgl_label_collision.png)

## 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:
- [SemanticFinder](https://github.com/do-me/SemanticFinder)
- [Qdrant Frontend](https://github.com/do-me/qdrant-frontend/)