Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
midlik committed May 10, 2024
1 parent e91e184 commit 1b72a37
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 12 deletions.
42 changes: 35 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,53 @@

# Heatmap Component

TypeScript library for creating interactive grid heatmaps
TypeScript library for creating interactive grid heatmaps.

TODO: more intro, why we do this
TODO: high level overview of functionality
The goal of Heatmap Component is to provide a tool for visualizing two-dimensional data in the form of grid heatmaps. It focuses on interactivity, performance, and customizability.

### Features

- Data type flexibility: appropriate for 2D arrays of numerical data, categorical data, and more complex data types
- Customizable color scheme
- Interactivity:
- Zooming (currently only in x-axis direction)
- Markers: highlighting current column, row, and data item
- Tooltips: showing custom content when the user hovers or clicks a data item
- Efficient canvas-based rendering: smooth visualizations even with millions of data items
- Integrability with other components via exposed events (hover, select, zoom...)
- Extensibility: new behaviors can be added via extensions

### What it doesn't do

- Visualization of data that don't fit into a 2D grid
- Other shapes than rectangles
- Axis labeling
- Data loading or modification via UI

### Example of Heatmap Component visualization

![Heatmap Component](./docs/heatmap-component.png)

### Live demos

<https://pdbeurope.github.io/heatmap-component/> (deployed from `main` branch)

---

## Documentation

- Documentation for the current repository: [./docs/README.md](./docs/README.md)
- Documentation for the latest release: <https://github.com/PDBeurope/heatmap-component/blob/v0.9.0/docs/README.md>

## Demos

- Live demos: <https://pdbeurope.github.io/heatmap-component/> (deployed from `main` branch)
---

## npm package

This package is published to npm: https://www.npmjs.com/package/heatmap-component
This package is published to npm:

<https://www.npmjs.com/package/heatmap-component>

---

## Development

Expand Down
7 changes: 2 additions & 5 deletions README.npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@

TypeScript library for creating interactive grid heatmaps

Live demos: <https://pdbeurope.github.io/heatmap-component/> (deployed from `main` branch)

## Documentation

- [Documentation for the latest release (v0.9.0)](https://github.com/PDBeurope/heatmap-component/blob/v0.9.0/docs/README.md)

## Demos

- [Live demos on github.io](https://pdbeurope.github.io/heatmap-component/)

2 changes: 2 additions & 0 deletions src/heatmap-component/heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ import { XAlignmentMode, YAlignmentMode, ZoomEventParam } from './state';


// TODO: Should: docs
// TODO: Could: categorical color schemes
// TODO: Could: reorganize demos and index.html, github.io
// TODO: Could: allow triggering markers from outside the code (and only vertical or only horizontal specifically, i.e. by handling out-of scope x/y appropriately)
// TODO: Could: various zoom modes (horizontal, vertical, both, none...)
// TODO: Would: try setting `downsamplingPixelsPerRect` dynamically, based on rendering times
// TODO: Would: Smoothen zooming and panning with mouse wheel?
// TODO: Would: Tooltip/marker only showing on click?


export class Heatmap<TX, TY, TItem> extends HeatmapCore<TX, TY, TItem> {
Expand Down

0 comments on commit 1b72a37

Please sign in to comment.