@carbon/charts 0.53.3 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/build/demo/data/CHART_TYPES.d.ts +5 -0
- package/build/demo/data/heatmap.d.ts +96 -0
- package/build/demo/data/index.d.ts +1 -0
- package/build/src/charts/heatmap.d.ts +10 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/components/axes/axis.d.ts +7 -1
- package/build/src/components/axes/hover-axis.d.ts +10 -0
- package/build/src/components/axes/toolbar.d.ts +5 -1
- package/build/src/components/essentials/color-scale-legend.d.ts +11 -0
- package/build/src/components/graphs/heatmap.d.ts +25 -0
- package/build/src/components/index.d.ts +2 -0
- package/build/src/configuration-non-customizable.d.ts +12 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +35 -2
- package/build/src/interfaces/components.d.ts +19 -0
- package/build/src/interfaces/enums.d.ts +24 -1
- package/build/src/interfaces/events.d.ts +15 -2
- package/build/src/model/cartesian-charts.d.ts +8 -1
- package/build/src/model/heatmap.d.ts +57 -0
- package/build/src/services/scales-cartesian.d.ts +1 -0
- package/bundle.js +1 -1
- package/charts/heatmap.d.ts +10 -0
- package/charts/heatmap.js +138 -0
- package/charts/heatmap.js.map +1 -0
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/components/axes/axis.d.ts +7 -1
- package/components/axes/axis.js +9 -2
- package/components/axes/axis.js.map +1 -1
- package/components/axes/hover-axis.d.ts +10 -0
- package/components/axes/hover-axis.js +235 -0
- package/components/axes/hover-axis.js.map +1 -0
- package/components/axes/toolbar.d.ts +5 -1
- package/components/axes/toolbar.js +94 -34
- package/components/axes/toolbar.js.map +1 -1
- package/components/axes/two-dimensional-axes.js +8 -3
- package/components/axes/two-dimensional-axes.js.map +1 -1
- package/components/essentials/color-scale-legend.d.ts +11 -0
- package/components/essentials/color-scale-legend.js +236 -0
- package/components/essentials/color-scale-legend.js.map +1 -0
- package/components/graphs/heatmap.d.ts +25 -0
- package/components/graphs/heatmap.js +369 -0
- package/components/graphs/heatmap.js.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/index.js.map +1 -1
- package/configuration-non-customizable.d.ts +12 -0
- package/configuration-non-customizable.js +13 -0
- package/configuration-non-customizable.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +13 -1
- package/configuration.js.map +1 -1
- package/demo/data/CHART_TYPES.d.ts +5 -0
- package/demo/data/CHART_TYPES.js +5 -0
- package/demo/data/CHART_TYPES.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/heatmap.d.ts +96 -0
- package/demo/data/heatmap.js +1135 -0
- package/demo/data/heatmap.js.map +1 -0
- package/demo/data/index.d.ts +1 -0
- package/demo/data/index.js +30 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/toolbar.js +12 -0
- package/demo/data/toolbar.js.map +1 -1
- package/demo/styles.css +16458 -9179
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +19 -5
- package/interfaces/charts.d.ts +35 -2
- package/interfaces/charts.js.map +1 -1
- package/interfaces/components.d.ts +19 -0
- package/interfaces/components.js.map +1 -1
- package/interfaces/enums.d.ts +24 -1
- package/interfaces/enums.js +26 -0
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.d.ts +15 -2
- package/interfaces/events.js +14 -0
- package/interfaces/events.js.map +1 -1
- package/model/cartesian-charts.d.ts +8 -1
- package/model/cartesian-charts.js +4 -2
- package/model/cartesian-charts.js.map +1 -1
- package/model/heatmap.d.ts +57 -0
- package/model/heatmap.js +289 -0
- package/model/heatmap.js.map +1 -0
- package/package.json +1 -1
- package/services/canvas-zoom.js +1 -1
- package/services/canvas-zoom.js.map +1 -1
- package/services/scales-cartesian.d.ts +1 -0
- package/services/scales-cartesian.js +16 -0
- package/services/scales-cartesian.js.map +1 -1
- package/services/zoom.js +5 -0
- package/services/zoom.js.map +1 -1
- package/styles/color-palatte.scss +96 -0
- package/styles/colors.scss +35 -1
- package/styles/components/_axis.scss +41 -0
- package/styles/components/_color-legend.scss +24 -0
- package/styles/components/index.scss +1 -0
- package/styles/graphs/_heatmap.scss +70 -0
- package/styles/graphs/index.scss +1 -0
- package/styles-g10.css +2000 -179
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +2003 -182
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +2004 -180
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +2000 -179
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +187 -65
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.54.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.0...v0.54.1) (2022-01-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** remove circular dependencies inheritance from heatmap legend & canvas zoom files ([#1260](https://github.com/carbon-design-system/carbon-charts/issues/1260)) ([1abc4d9](https://github.com/carbon-design-system/carbon-charts/commit/1abc4d9ebf8ce80226df23371c4b9baa669f4c7f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.54.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.5...v0.54.0) (2021-12-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **core:** create heatmap chart ([#1200](https://github.com/carbon-design-system/carbon-charts/issues/1200)) ([a55be0f](https://github.com/carbon-design-system/carbon-charts/commit/a55be0fcec6020b609ab18b2224562aaa9775321))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [0.53.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.4...v0.53.5) (2021-12-15)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **core:** use domain in zoom bar if defined in axes ([#1243](https://github.com/carbon-design-system/carbon-charts/issues/1243)) ([b265676](https://github.com/carbon-design-system/carbon-charts/commit/b2656764758d5b339987a59a2be344d0e94df4c2)), closes [#1228](https://github.com/carbon-design-system/carbon-charts/issues/1228)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [0.53.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.3...v0.53.4) (2021-12-13)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* **core:** allow users to define custom buttons in toolbar ([#1158](https://github.com/carbon-design-system/carbon-charts/issues/1158)) ([4996591](https://github.com/carbon-design-system/carbon-charts/commit/499659155b56df9f7ab03633e43f5437f21bb129)), closes [#1129](https://github.com/carbon-design-system/carbon-charts/issues/1129)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
## [0.53.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.2...v0.53.3) (2021-12-07)
|
|
7
51
|
|
|
8
52
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export declare const heatmapData: {
|
|
2
|
+
letter: string;
|
|
3
|
+
month: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const heatmapOptions: {
|
|
7
|
+
title: string;
|
|
8
|
+
axes: {
|
|
9
|
+
bottom: {
|
|
10
|
+
title: string;
|
|
11
|
+
mapsTo: string;
|
|
12
|
+
scaleType: string;
|
|
13
|
+
};
|
|
14
|
+
left: {
|
|
15
|
+
title: string;
|
|
16
|
+
mapsTo: string;
|
|
17
|
+
scaleType: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
heatmap: {
|
|
21
|
+
colorLegend: {
|
|
22
|
+
title: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
experimental: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const heatmapQuantizeLegendOption: {
|
|
28
|
+
title: string;
|
|
29
|
+
axes: {
|
|
30
|
+
bottom: {
|
|
31
|
+
title: string;
|
|
32
|
+
mapsTo: string;
|
|
33
|
+
scaleType: string;
|
|
34
|
+
};
|
|
35
|
+
left: {
|
|
36
|
+
title: string;
|
|
37
|
+
mapsTo: string;
|
|
38
|
+
scaleType: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
heatmap: {
|
|
42
|
+
colorLegend: {
|
|
43
|
+
title: string;
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
experimental: boolean;
|
|
48
|
+
};
|
|
49
|
+
export declare const heatmapDomainOptions: {
|
|
50
|
+
title: string;
|
|
51
|
+
axes: {
|
|
52
|
+
bottom: {
|
|
53
|
+
title: string;
|
|
54
|
+
mapsTo: string;
|
|
55
|
+
scaleType: string;
|
|
56
|
+
};
|
|
57
|
+
left: {
|
|
58
|
+
title: string;
|
|
59
|
+
mapsTo: string;
|
|
60
|
+
scaleType: string;
|
|
61
|
+
domain: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
heatmap: {
|
|
65
|
+
colorLegend: {
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
experimental: boolean;
|
|
70
|
+
};
|
|
71
|
+
export declare const heatmapMissingData: {
|
|
72
|
+
letter: string;
|
|
73
|
+
month: string;
|
|
74
|
+
value: number;
|
|
75
|
+
}[];
|
|
76
|
+
export declare const heatmapMissingDataOptions: {
|
|
77
|
+
title: string;
|
|
78
|
+
axes: {
|
|
79
|
+
bottom: {
|
|
80
|
+
title: string;
|
|
81
|
+
mapsTo: string;
|
|
82
|
+
scaleType: string;
|
|
83
|
+
};
|
|
84
|
+
left: {
|
|
85
|
+
title: string;
|
|
86
|
+
mapsTo: string;
|
|
87
|
+
scaleType: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
heatmap: {
|
|
91
|
+
colorLegend: {
|
|
92
|
+
title: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
experimental: boolean;
|
|
96
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HeatmapModel } from '../model/heatmap';
|
|
2
|
+
import { AxisChart } from '../axis-chart';
|
|
3
|
+
import { HeatmapChartOptions, ChartConfig } from '../interfaces/index';
|
|
4
|
+
import { Modal, LayoutComponent, AxisChartsTooltip } from '../components';
|
|
5
|
+
export declare class HeatmapChart extends AxisChart {
|
|
6
|
+
model: HeatmapModel;
|
|
7
|
+
constructor(holder: Element, chartConfigs: ChartConfig<HeatmapChartOptions>);
|
|
8
|
+
protected getAxisChartComponents(graphFrameComponents: any[], configs?: any): (AxisChartsTooltip | Modal | LayoutComponent)[];
|
|
9
|
+
getComponents(): any[];
|
|
10
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { Component } from '../component';
|
|
2
|
-
import { ScaleTypes } from '../../interfaces';
|
|
2
|
+
import { AxisPositions, ScaleTypes } from '../../interfaces';
|
|
3
3
|
import { ChartModel } from '../../model/model';
|
|
4
4
|
import { RenderTypes } from '../../interfaces/enums';
|
|
5
5
|
export declare class Axis extends Component {
|
|
6
6
|
type: string;
|
|
7
7
|
renderType: RenderTypes;
|
|
8
8
|
margins: any;
|
|
9
|
+
truncation: {
|
|
10
|
+
[AxisPositions.LEFT]: boolean;
|
|
11
|
+
[AxisPositions.RIGHT]: boolean;
|
|
12
|
+
[AxisPositions.TOP]: boolean;
|
|
13
|
+
[AxisPositions.BOTTOM]: boolean;
|
|
14
|
+
};
|
|
9
15
|
scale: any;
|
|
10
16
|
scaleType: ScaleTypes;
|
|
11
17
|
constructor(model: ChartModel, services: any, configs?: any);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Axis } from './axis';
|
|
2
|
+
import { ChartModel } from '../../model/model';
|
|
3
|
+
export declare class HoverAxis extends Axis {
|
|
4
|
+
constructor(model: ChartModel, services: any, configs?: any);
|
|
5
|
+
render(animate?: boolean): void;
|
|
6
|
+
addEventListeners(): void;
|
|
7
|
+
private goNext;
|
|
8
|
+
private goPrevious;
|
|
9
|
+
destroy(): void;
|
|
10
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component } from '../component';
|
|
2
2
|
import { RenderTypes, ToolbarControlTypes } from '../../interfaces';
|
|
3
3
|
export declare class Toolbar extends Component {
|
|
4
|
+
static buttonID: number;
|
|
4
5
|
type: string;
|
|
5
6
|
renderType: RenderTypes;
|
|
6
7
|
overflowButton: any;
|
|
@@ -15,6 +16,7 @@ export declare class Toolbar extends Component {
|
|
|
15
16
|
focusOnPreviousEnabledMenuItem(currentItemIndex: any): void;
|
|
16
17
|
focusOnNextEnabledMenuItem(currentItemIndex: any): void;
|
|
17
18
|
toggleOverflowMenu(event: any): void;
|
|
19
|
+
triggerFunctionAndEvent(control: any, event: any, element?: any): void;
|
|
18
20
|
getControlConfigs(): {
|
|
19
21
|
buttonList: any[];
|
|
20
22
|
overflowMenuItemList?: undefined;
|
|
@@ -28,7 +30,9 @@ export declare class Toolbar extends Component {
|
|
|
28
30
|
id: string;
|
|
29
31
|
title: string;
|
|
30
32
|
shouldBeDisabled: () => boolean;
|
|
31
|
-
|
|
33
|
+
iconSVG: {
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
32
36
|
clickFunction: (event: any) => void;
|
|
33
37
|
};
|
|
34
38
|
getControlConfigByType(controlType: ToolbarControlTypes): any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RenderTypes } from '../../interfaces';
|
|
2
|
+
import { Legend } from './legend';
|
|
3
|
+
export declare class ColorScaleLegend extends Legend {
|
|
4
|
+
type: string;
|
|
5
|
+
renderType: RenderTypes;
|
|
6
|
+
private gradient_id;
|
|
7
|
+
init(): void;
|
|
8
|
+
handleAxisComplete: (event: CustomEvent<any>) => void;
|
|
9
|
+
render(animate?: boolean): void;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component } from '../component';
|
|
2
|
+
import { RenderTypes } from '../../interfaces';
|
|
3
|
+
export declare class Heatmap extends Component {
|
|
4
|
+
type: string;
|
|
5
|
+
renderType: RenderTypes;
|
|
6
|
+
private matrix;
|
|
7
|
+
private xBandwidth;
|
|
8
|
+
private yBandwidth;
|
|
9
|
+
private translationUnits;
|
|
10
|
+
init(): void;
|
|
11
|
+
render(animate?: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* Generates a box using lines to create a hover effect
|
|
14
|
+
* The lines have drop shadow in their respective direction
|
|
15
|
+
* @param parentTag - tag name
|
|
16
|
+
* @param xBandwidth - X length
|
|
17
|
+
* @param yBandwidth - y length
|
|
18
|
+
*/
|
|
19
|
+
private createOuterBox;
|
|
20
|
+
private determineDividerStatus;
|
|
21
|
+
addEventListener(): void;
|
|
22
|
+
handleAxisOnHover: (event: CustomEvent<any>) => void;
|
|
23
|
+
handleAxisMouseOut: (event: CustomEvent<any>) => void;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './component';
|
|
2
2
|
export * from './essentials/legend';
|
|
3
|
+
export * from './essentials/color-scale-legend';
|
|
3
4
|
export * from './essentials/modal';
|
|
4
5
|
export * from './essentials/threshold';
|
|
5
6
|
export * from './essentials/title';
|
|
@@ -32,6 +33,7 @@ export * from './graphs/radar';
|
|
|
32
33
|
export * from './graphs/circle-pack';
|
|
33
34
|
export * from './graphs/wordcloud';
|
|
34
35
|
export * from './graphs/alluvial';
|
|
36
|
+
export * from './graphs/heatmap';
|
|
35
37
|
export * from './layout/spacer';
|
|
36
38
|
export * from './layout/layout';
|
|
37
39
|
export * from './axes/two-dimensional-axes';
|
|
@@ -18,6 +18,9 @@ export declare const axis: {
|
|
|
18
18
|
compareTo: string;
|
|
19
19
|
};
|
|
20
20
|
paddingRatio: number;
|
|
21
|
+
hover: {
|
|
22
|
+
rectanglePadding: number;
|
|
23
|
+
};
|
|
21
24
|
};
|
|
22
25
|
export declare const canvasZoomSettings: {
|
|
23
26
|
duration: number;
|
|
@@ -130,6 +133,11 @@ export declare const legend: {
|
|
|
130
133
|
}[];
|
|
131
134
|
color: string;
|
|
132
135
|
};
|
|
136
|
+
color: {
|
|
137
|
+
barWidth: number;
|
|
138
|
+
barHeight: number;
|
|
139
|
+
axisYTranslation: number;
|
|
140
|
+
};
|
|
133
141
|
};
|
|
134
142
|
export declare const lines: {
|
|
135
143
|
opacity: {
|
|
@@ -199,6 +207,10 @@ export declare const alluvial: {
|
|
|
199
207
|
selected: number;
|
|
200
208
|
};
|
|
201
209
|
};
|
|
210
|
+
export declare const heatmap: {
|
|
211
|
+
minCellDividerDimension: number;
|
|
212
|
+
chartPadding: number;
|
|
213
|
+
};
|
|
202
214
|
export declare const spacers: {
|
|
203
215
|
default: {
|
|
204
216
|
size: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, BoxplotChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, BulletChartOptions, HistogramChartOptions, RadarChartOptions, ComboChartOptions, TreeChartOptions, TreemapChartOptions, CirclePackChartOptions, WorldCloudChartOptions, AlluvialChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions, ProportionalMeterChartOptions } from './interfaces';
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, BoxplotChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, BulletChartOptions, HistogramChartOptions, RadarChartOptions, ComboChartOptions, TreeChartOptions, TreemapChartOptions, CirclePackChartOptions, WorldCloudChartOptions, AlluvialChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions, ProportionalMeterChartOptions, HeatmapChartOptions } from './interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Grid options
|
|
4
4
|
*/
|
|
@@ -39,5 +39,6 @@ export declare const options: {
|
|
|
39
39
|
circlePackChart: CirclePackChartOptions;
|
|
40
40
|
wordCloudChart: WorldCloudChartOptions;
|
|
41
41
|
alluvialChart: AlluvialChartOptions;
|
|
42
|
+
heatmapChart: HeatmapChartOptions;
|
|
42
43
|
};
|
|
43
44
|
export * from './configuration-non-customizable';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GaugeTypes, Statuses, ArrowDirections, Alignments, ChartTypes, TreeTypes } from './enums';
|
|
1
|
+
import { GaugeTypes, Statuses, ArrowDirections, Alignments, ChartTypes, TreeTypes, DividerStatus, ColorLegendType } from './enums';
|
|
2
2
|
import { LegendOptions, TooltipOptions, GridOptions, AxesOptions, ZoomBarsOptions } from './index';
|
|
3
3
|
import { BarOptions, StackedBarOptions, ToolbarOptions } from './components';
|
|
4
4
|
import { AxisOptions, BinnedAxisOptions, TimeScaleOptions } from './axis-scales';
|
|
@@ -100,7 +100,14 @@ export interface BaseChartOptions {
|
|
|
100
100
|
*/
|
|
101
101
|
option?: number;
|
|
102
102
|
};
|
|
103
|
-
gradient?:
|
|
103
|
+
gradient?: {
|
|
104
|
+
enabled?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* hex color array
|
|
107
|
+
* e.g. ['#fff', '#000', ...]
|
|
108
|
+
*/
|
|
109
|
+
colors?: Array<String>;
|
|
110
|
+
};
|
|
104
111
|
};
|
|
105
112
|
}
|
|
106
113
|
/**
|
|
@@ -434,3 +441,29 @@ export interface AlluvialChartOptions extends BaseChartOptions {
|
|
|
434
441
|
monochrome?: boolean;
|
|
435
442
|
};
|
|
436
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* options specific to Heatmap charts
|
|
446
|
+
*/
|
|
447
|
+
export interface HeatmapChartOptions extends BaseChartOptions {
|
|
448
|
+
heatmap: {
|
|
449
|
+
/**
|
|
450
|
+
* Divider width state - will default to auto
|
|
451
|
+
* No cell divider for cell dimensions less than 16
|
|
452
|
+
*/
|
|
453
|
+
divider?: {
|
|
454
|
+
state?: DividerStatus;
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* customize color legend
|
|
458
|
+
* enabled by default on select charts
|
|
459
|
+
*/
|
|
460
|
+
colorLegend?: {
|
|
461
|
+
/**
|
|
462
|
+
* Text to display beside or on top of the legend
|
|
463
|
+
* Position is determined by text length
|
|
464
|
+
*/
|
|
465
|
+
title?: string;
|
|
466
|
+
type: ColorLegendType;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
}
|
|
@@ -152,6 +152,25 @@ export interface ToolbarControl {
|
|
|
152
152
|
* type value will be displayed if text is not available
|
|
153
153
|
*/
|
|
154
154
|
text?: string;
|
|
155
|
+
/**
|
|
156
|
+
* custom id for button
|
|
157
|
+
*/
|
|
158
|
+
id?: String;
|
|
159
|
+
/**
|
|
160
|
+
* SVG HTML element
|
|
161
|
+
*/
|
|
162
|
+
iconSVG?: {
|
|
163
|
+
content?: string;
|
|
164
|
+
height?: string;
|
|
165
|
+
width?: string;
|
|
166
|
+
};
|
|
167
|
+
shouldBeDisabled?: Function;
|
|
168
|
+
/**
|
|
169
|
+
* function to execute on button click
|
|
170
|
+
* alternatively, users can choose to not pass in a function and can
|
|
171
|
+
* listen for events to execute asynchronously
|
|
172
|
+
*/
|
|
173
|
+
clickFunction?: Function;
|
|
155
174
|
}
|
|
156
175
|
/**
|
|
157
176
|
* customize the ZoomBars in a chart
|
|
@@ -203,7 +203,8 @@ export declare enum ToolbarControlTypes {
|
|
|
203
203
|
ZOOM_OUT = "Zoom out",
|
|
204
204
|
RESET_ZOOM = "Reset zoom",
|
|
205
205
|
MAKE_FULLSCREEN = "Make fullscreen",
|
|
206
|
-
SHOW_AS_DATATABLE = "Show as data-table"
|
|
206
|
+
SHOW_AS_DATATABLE = "Show as data-table",
|
|
207
|
+
CUSTOM = "Custom"
|
|
207
208
|
}
|
|
208
209
|
/**
|
|
209
210
|
* enum of title orientations for _vertical axes_
|
|
@@ -224,3 +225,25 @@ export declare enum LegendItemType {
|
|
|
224
225
|
QUARTILE = "quartile",
|
|
225
226
|
ZOOM = "zoom"
|
|
226
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* enum of color legend types
|
|
230
|
+
*/
|
|
231
|
+
export declare enum ColorLegendType {
|
|
232
|
+
LINEAR = "linear",
|
|
233
|
+
QUANTIZE = "quantize"
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* enum of divider status for heatmap
|
|
237
|
+
*/
|
|
238
|
+
export declare enum DividerStatus {
|
|
239
|
+
ON = "on",
|
|
240
|
+
AUTO = "auto",
|
|
241
|
+
OFF = "off"
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* enum of axis flavor
|
|
245
|
+
*/
|
|
246
|
+
export declare enum AxisFlavor {
|
|
247
|
+
DEFAULT = "default",
|
|
248
|
+
HOVERABLE = "hoverable"
|
|
249
|
+
}
|
|
@@ -25,7 +25,8 @@ export declare enum Model {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare enum Toolbar {
|
|
27
27
|
SHOW_OVERFLOW_MENU = "show-toolbar-overflow-menu",
|
|
28
|
-
HIDE_OVERFLOW_MENU = "hide-toolbar-overflow-menu"
|
|
28
|
+
HIDE_OVERFLOW_MENU = "hide-toolbar-overflow-menu",
|
|
29
|
+
BUTTON_CLICK = "toolbar-button-click"
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* enum of all events related to the zoom-bar
|
|
@@ -56,7 +57,10 @@ export declare enum Axis {
|
|
|
56
57
|
LABEL_MOUSEOVER = "axis-label-mouseover",
|
|
57
58
|
LABEL_MOUSEMOVE = "axis-label-mousemove",
|
|
58
59
|
LABEL_CLICK = "axis-label-click",
|
|
59
|
-
LABEL_MOUSEOUT = "axis-label-mouseout"
|
|
60
|
+
LABEL_MOUSEOUT = "axis-label-mouseout",
|
|
61
|
+
LABEL_FOCUS = "axis-label-focus",
|
|
62
|
+
LABEL_BLUR = "axis-label-blur",
|
|
63
|
+
RENDER_COMPLETE = "axis-render-complete"
|
|
60
64
|
}
|
|
61
65
|
/**
|
|
62
66
|
* enum of all area graph events
|
|
@@ -215,3 +219,12 @@ export declare enum Meter {
|
|
|
215
219
|
METER_MOUSEOUT = "meter-mouseout",
|
|
216
220
|
METER_MOUSEMOVE = "meter-mousemove"
|
|
217
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* enum of all heatmap related events
|
|
224
|
+
*/
|
|
225
|
+
export declare enum Heatmap {
|
|
226
|
+
HEATMAP_MOUSEOVER = "heatmap-mouseover",
|
|
227
|
+
HEATMAP_CLICK = "heatmap-click",
|
|
228
|
+
HEATMAP_MOUSEOUT = "heatmap-mouseout",
|
|
229
|
+
HEATMAP_MOUSEMOVE = "hetmap-mousemove"
|
|
230
|
+
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { ChartModel } from './model';
|
|
2
|
+
import { AxisFlavor } from '../interfaces';
|
|
2
3
|
/**
|
|
3
4
|
* This supports adding X and Y Cartesian[2D] zoom data to a ChartModel
|
|
4
5
|
* */
|
|
5
6
|
export declare class ChartModelCartesian extends ChartModel {
|
|
7
|
+
protected axisFlavor: AxisFlavor;
|
|
6
8
|
constructor(services: any);
|
|
7
|
-
|
|
9
|
+
protected assignRangeAndDomains(): {
|
|
10
|
+
primaryDomain: any;
|
|
11
|
+
primaryRange: any;
|
|
12
|
+
secondaryDomain: any;
|
|
13
|
+
secondaryRange: any;
|
|
14
|
+
};
|
|
8
15
|
getTabularDataArray(): any[];
|
|
9
16
|
setData(newData: any): any;
|
|
10
17
|
/**
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { AxisFlavor } from '../interfaces';
|
|
2
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
3
|
+
/** The gauge chart model layer */
|
|
4
|
+
export declare class HeatmapModel extends ChartModelCartesian {
|
|
5
|
+
protected axisFlavor: AxisFlavor;
|
|
6
|
+
private _colorScale;
|
|
7
|
+
private _domains;
|
|
8
|
+
private _ranges;
|
|
9
|
+
private _matrix;
|
|
10
|
+
constructor(services: any);
|
|
11
|
+
/**
|
|
12
|
+
* Get min and maximum value of the display data
|
|
13
|
+
* @returns Array consisting of smallest and largest values in data
|
|
14
|
+
*/
|
|
15
|
+
getValueDomain(): any[];
|
|
16
|
+
/**
|
|
17
|
+
* @override
|
|
18
|
+
* @param value
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
getFillColor(value: number): any;
|
|
22
|
+
/**
|
|
23
|
+
* Generate a list of all unique domains
|
|
24
|
+
* @returns String[]
|
|
25
|
+
*/
|
|
26
|
+
getUniqueDomain(): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Generates a list of all unique ranges
|
|
29
|
+
* @returns String[]
|
|
30
|
+
*/
|
|
31
|
+
getUniqueRanges(): string[];
|
|
32
|
+
/**
|
|
33
|
+
* Generates a matrix (If doesn't exist) and returns it
|
|
34
|
+
* @returns Object
|
|
35
|
+
*/
|
|
36
|
+
getMatrix(): {};
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param newData The new raw data to be set
|
|
40
|
+
*/
|
|
41
|
+
setData(newData: any): any;
|
|
42
|
+
/**
|
|
43
|
+
* Converts Object matrix into a single array
|
|
44
|
+
* @returns Object[]
|
|
45
|
+
*/
|
|
46
|
+
getMatrixAsArray(): Object[];
|
|
47
|
+
/**
|
|
48
|
+
* Generate tabular data from display data
|
|
49
|
+
* @returns Array<Object>
|
|
50
|
+
*/
|
|
51
|
+
getTabularDataArray(): any[];
|
|
52
|
+
getColorClassName(configs: {
|
|
53
|
+
value?: number;
|
|
54
|
+
originalClassName?: string;
|
|
55
|
+
}): string;
|
|
56
|
+
protected setColorClassNames(): void;
|
|
57
|
+
}
|
|
@@ -37,6 +37,7 @@ export declare class CartesianScales extends Service {
|
|
|
37
37
|
determineOrientation(): void;
|
|
38
38
|
isDualAxes(): Boolean;
|
|
39
39
|
determineAxisDuality(): void;
|
|
40
|
+
getCustomDomainValuesByposition(axisPosition: AxisPositions): any;
|
|
40
41
|
getOrientation(): CartesianOrientations;
|
|
41
42
|
getScaleByPosition(axisPosition: AxisPositions): any;
|
|
42
43
|
getScaleTypeByPosition(axisPosition: AxisPositions): any;
|