tremorlabs / tremor

React components to build charts and dashboards
https://tremor.so
Apache License 2.0
15.66k stars 452 forks source link

component request: heatmap #137

Closed nektro closed 2 months ago

nektro commented 1 year ago

curious if your guidance would be to implement it with a table or if a custom Tremor component makes sense

severinlandolt commented 1 year ago

Hey, @nektro thank you for your feedback. We will discuss this internally. I am very curious about which use cases you want to cover with this chart, can you tell us a little bit more about that? :)

nektro commented 1 year ago

similar to the line chart its a way to show the feed from a single stream over time

image

however it uses color rather than height and can show longer spans of time since its more dense

image

image

AbdelrhmanHamouda commented 1 year ago

I wold like to also add a use case:

christopherkindl commented 1 year ago

Hi @AbdelrhmanHamouda, many thanks for describing your use case! This definitely helps us when designing the components :)

vinhloc30796 commented 1 year ago

Another set of use cases:

I'd love to help build this out - but I'll probably need some guidance on where/how to start.

The closest thing that Tremor has right now is the Tracker component. Perhaps a good way to start is build on top of it: (a) enabling rows (b) enabling auto calculation of color gradient

nektro commented 1 year ago

Oh good eye, you can probably make a Heapmap by stacking a few Trackers on top of each other

mbauchet commented 10 months ago

@severinlandolt @christopherkindl Any interest on this chart? I think we can dig with multiple combined Scatter charts like this:

Capture d’écran 2023-07-23 à 19 45 54

I may try to make a PR for this if there is any interest for you. (We'll have to discuss about data formatting)

alroniks commented 7 months ago

It would be nice to have such kind of component that be tuned for some specific cases. One of them is to build a chart for tracking user retention using cohort analysis.

Example:

Screenshot 2023-11-08 at 16 58 08
severinlandolt commented 2 months ago

Hi all! This component is super specific to your personal use case. We don't see much added value by giving you an generalised heat map. Rolling out a one-size-fits-all component and remaining a simple API won't be a good fit for this. Thanks for the discussion!