# ngx-heatmap

> An angular wrapper for heatmap.js.

Latest version **1.0.2** (published 2020-05-05) · 0 weekly downloads

## Install

```sh
npm install ngx-heatmap
pnpm add ngx-heatmap
yarn add ngx-heatmap
bun add ngx-heatmap
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-05-05 |
| First published | 2018-03-15 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 108.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sanuradhag |

## Links

- npm: https://www.npmjs.com/package/ngx-heatmap
- npm.io page: https://npm.io/package/ngx-heatmap

## Recent versions

- 1.0.2 (latest) — 2020-05-05
- 1.0.1 — 2020-05-05
- 1.0.0 — 2020-05-05
- 0.0.6 — 2018-03-15
- 0.0.5 — 2018-03-15
- 0.0.4 — 2018-03-15
- 0.0.3 — 2018-03-15
- 0.0.2 — 2018-03-15
- 0.0.1 — 2018-03-15

## README

# ngx heatmap

An angular wrapper for heatmap.js.

### Installation

Install through npm;

    npm install --save ngx-heatmap

For now you have to install following dependency since Angular 9 and heatmap.js have problems when resolving peer dependencies

    npm install --save git+https://github.com/sanuradhag/heatmap.js
    
Then import **`NgxHeatmapModule`** and include it in your apps for module.
    
    import { Component, NgModule } from '@angular/core';
    import { NgxHeatmapModule } from 'ngx-heatmap';
     
    @NgModule({
      imports: [
        NgxHeatmapModule
      ]
    })
    export class MyModule {}
 
Then add  **`ngx-heatmap`** to your app template.
    
    <ngx-heatmap [height]="height"
                 [width]="width"
                 [maxDataPoints]="500"
                 [minDataPoints]="500"
                 [heatPoints]="data">
    </ngx-heatmap>


### Styles 

Style guide will be added soon.


### Documentation
   
##### ngx-heatmap properties.

   
   Property| Input/Output| Default value | Description
   | -------| --------|-------|:--------------|
   |[height]| Input | 400px |Height of the heat map canvas|
   |[width]| Input| 400px |  Width of the heat map canvas|
   |[maxDataPoints]| Input| null| Maximum number of points on heat map| 
   |[minDatPoints]| Input| null| Minimum number of points on heat map.| 
   |[heatPoints]| Input| {} - empty Object| Object, that contains the data Attribute, that containing an Array with heat map points| 
   |[configurations]| Input| {} - empty object| Configurations for heat map| 
  

##### Example for data

`{
   max: 5,
   data: [{ x: 10, y: 15, value: 5}, { x: 5, y: 20, value: 4}]
 }`

### Any suggestions?

  Drop me a e-mail saggunasekara@gmail.com.   
  
  Or open a new issue in https://github.com/sanuradhag/ngx-heatmap/issues

## Contributors

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
 [<img src="https://avatars0.githubusercontent.com/u/24251976?s=400&v=4" width="100px;"/><br /><sub>Anuradha Gunasekara</sub>][anuradha-profile]|
| :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

## License

This software is licensed under the MIT license

[license-badge]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license]: https://github.com/yohangz/scala-play-angular-seed/blob/master/LICENSE

[anuradha-profile]: https://github.com/sanuradhag

---
_Source: https://npm.io/package/ngx-heatmap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
