1.0.2 • Published 4 years ago

ngx-heatmap v1.0.2

Weekly downloads
174
License
-
Repository
-
Last release
4 years ago

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.
PropertyInput/OutputDefault valueDescription
heightInput400pxHeight of the heat map canvas
widthInput400pxWidth of the heat map canvas
maxDataPointsInputnullMaximum number of points on heat map
minDatPointsInputnullMinimum number of points on heat map.
heatPointsInput{} - empty ObjectObject, that contains the data Attribute, that containing an Array with heat map points
configurationsInput{} - empty objectConfigurations 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

Anuradha Gunasekara

License

This software is licensed under the MIT license

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago