Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add heatmaps/lasagna plots #419

Open
beasteers opened this issue Oct 21, 2019 · 0 comments
Open

Add heatmaps/lasagna plots #419

beasteers opened this issue Oct 21, 2019 · 0 comments

Comments

@beasteers
Copy link

beasteers commented Oct 21, 2019

🌈Feature request

What is this feature?
There are a lot of really great things that I've been looking for in a react plotting library (shoutout to brushes and event charts !!)

A useful feature would be heatmaps that show multivariate time series where each variable is a row and a variable's magnitude is denoted through color.

How should the feature work?
It should take in a 2d array and draw an even (or maybe uneven could be a good option too) grid of rectangles where the color is attached to some value scale.

The two features that I'm not sure that react-ts-charts has are

  1. a categorical axis (for example, if you have 5 sensors, and you want to show their uptime coverage over time, displaying each sensor as a row), and
  2. color scales + a color bar

Do you have examples or an idea of how it can be implemented?
Here's a d3 example which shows a basic way of making a heatmap. I'm sure it won't be much different with react+svg
https://www.d3-graph-gallery.com/graph/heatmap_basic.html

Additional context
(Add any other context or screenshots about the feature request here)

I'm mostly interested in the first and third plots which are the easiest to deal with

Spectrogram reference

Here's an example of an audio spectrogram. The y axis has a linear scale
spectrogram example

Categorical heatmap reference

Here's an example with a categorical scale
image

The principal is the same, but they differ in labeling

Update: they are also called lasagna plots

image

@beasteers beasteers changed the title Add heatmaps (spectrogram not geo) Add heatmaps/lasagna plots Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant