| Name | Type | Default |
|
xAxis
# |
HeatMapXAxis
|
{}
|
HeatMapLabelFormat: "numeric" | "2-digit" | "narrow" | "short" | "long"
Interface HeatMapXAxis { labels?: any[]; opposedPosition?: boolean; isInversed?: boolean; minimum?: Date; maximum?: Date; labelFormat?: HeatMapLabelFormat; }
Sets the HeatMap x Axis.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [xAxis]="xAxis"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public xAxis = {
labels: [
'John',
'Marry',
'Alba',
'Steven',
'Josh',
'Alica',
'Robert',
'Kim',
'Ann',
'Paul',
'Regina',
'Dorothy'
],
opposedPosition: false,
isInversed: false,
minimum: null,
maximum: null,
labelFormat: 'short'
};
}
|
|
yAxis
# |
HeatMapYAxis
|
{}
|
Interface HeatMapYAxis { labels?: any[]; opposedPosition?: boolean; isInversed?: boolean; }
Sets the HeatMap y Axis.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [yAxis]="yAxis"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public yAxis = {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
opposedPosition: false,
isInversed: false
};
}
|
|
paletteSettings
# |
HeatMapPaletteSettings
|
{}
|
HeatMapPaletteType: "Gradient" | "Fixed"
Interface HeatMapPaletteSettings { palette?: any[]; type?: HeatMapPaletteType; emptyPointColor?: string; }
Sets the HeatMap palette settings.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [paletteSettings]="paletteSettings">
</jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public paletteSettings = {
palette: [
{ value: 0, color: '#5dc3f0', label: '' },
{ value: 50, color: '#4bb1de', label: '' },
{ value: 100, color: '#3885a6', label: '' }
],
type: 'Gradient',
emptyPointColor: '#eee'
};
}
|
|
legendSettings
# |
HeatMapLegendSettings
|
{}
|
HeatMapLegendPosition: "Top" | "Bottom" | "Left" | "Right"
Interface HeatMapLegendSettings { position?: HeatMapLegendPosition; }
Sets the HeatMap legend settings.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [legendSettings]="legendSettings">
</jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public legendSettings = { position: 'Right' };
}
|
|
source
# |
any[]
|
[]
|
Sets or gets the heatmap's source.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [source]="source"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public source = [
[89, 39, 94, 55, 3],
[53, 38, 26, 68, 33],
[22, 0, 66, 90, 78],
[97, 68, 68, 3, 99],
[47, 47, 88, 6, 1],
[73, 23, 3, 79, 100],
[21, 86, 13, 33, 0],
[53, 81, 95, 79, 66],
[74, 68, 88, 51, 43],
[10, 12, 78, 14, 21],
[55, 58, 12, 82, 99],
[88, 23, 86, 59, 53]
];
}
|
|
title
# |
string
|
Title
|
Sets or gets the heatmap's title.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [title]="'Template Title'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
}
|
|
width
# |
number | string
|
auto
|
Sets or gets the heatmap's width.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="1000"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
}
|
|
tooltipRender
# |
(args: HeatMapTooltipRender) => void
|
null
|
Interface HeatMapTooltipRender { xLabel?: any[]; yLabel?: any[]; value?: string; content?: string; date?: Date; }
Set the content of the tooltip. It can be either plain text or HTML code. Args object is passed which contains five properties - xLabel, yLabel, value, content and date (if heatmap is in calendar mode).
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'" [tooltipRender]="tooltipRender">
</jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public tooltipRender(
xLabel?: any[],
yLabel?: any[],
value?: string,
content?: string,
date?: Date
): void {
args.content = 'On ' + args.yLabel + ', ' + args.xLabel + ' has made ' + args.value;
}
}
|
|
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
|
Destroys the widget.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().destroy();
}
}
|
|
setLegendPosition
# |
position
|
|
Sets legend's position.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().setLegendPosition('Bottom');
}
}
|
|
setOpposedXAxisPosition
# |
opposedPosition
|
|
Sets opposed x axis position.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().setOpposedXAxisPosition(true);
}
}
|
|
setOpposedYAxisPosition
# |
opposedPosition
|
|
Sets opposed y axis position.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().setOpposedYAxisPosition(true);
}
}
|
|
reverseXAxisPosition
# |
isInversed
|
|
Sets reversed x axis position.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().reverseXAxisPosition(true);
}
}
|
|
reverseYAxisPosition
# |
isInversed
|
|
Sets reversed y axis position.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().reverseYAxisPosition(true);
}
}
|
|
setPaletteType
# |
type
|
|
Sets palette's type.
import { Component, viewChild } from '@angular/core';
import { jqxHeatMapComponent, jqxHeatMapModule } from 'jqwidgets-ng/jqxheatmap';
@Component({
selector: 'app-root',
imports: [jqxHeatMapModule],
template: `<jqxHeatMap #myHeatMap [width]="'auto'"> </jqxHeatMap>`,
styles: [``]
})
export class App {
readonly myHeatMap = viewChild.required<jqxHeatMapComponent>('myHeatMap');
public ngAfterViewInit(): void {
this.myHeatMap().setPaletteType('Fixed');
}
}
|