@carbon/charts 0.53.5 → 0.54.3

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.
Files changed (118) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/build/demo/data/CHART_TYPES.d.ts +5 -0
  3. package/build/demo/data/heatmap.d.ts +96 -0
  4. package/build/demo/data/index.d.ts +1 -0
  5. package/build/src/charts/heatmap.d.ts +10 -0
  6. package/build/src/charts/index.d.ts +1 -0
  7. package/build/src/components/axes/axis.d.ts +7 -1
  8. package/build/src/components/axes/hover-axis.d.ts +10 -0
  9. package/build/src/components/essentials/color-scale-legend.d.ts +11 -0
  10. package/build/src/components/graphs/bar-stacked.d.ts +1 -0
  11. package/build/src/components/graphs/heatmap.d.ts +25 -0
  12. package/build/src/components/index.d.ts +2 -0
  13. package/build/src/configuration-non-customizable.d.ts +12 -0
  14. package/build/src/configuration.d.ts +2 -1
  15. package/build/src/interfaces/charts.d.ts +35 -2
  16. package/build/src/interfaces/enums.d.ts +22 -0
  17. package/build/src/interfaces/events.d.ts +13 -1
  18. package/build/src/model/cartesian-charts.d.ts +8 -1
  19. package/build/src/model/heatmap.d.ts +57 -0
  20. package/build/src/model/model.d.ts +1 -1
  21. package/build/src/services/scales-cartesian.d.ts +1 -0
  22. package/bundle.js +1 -1
  23. package/charts/heatmap.d.ts +10 -0
  24. package/charts/heatmap.js +138 -0
  25. package/charts/heatmap.js.map +1 -0
  26. package/charts/index.d.ts +1 -0
  27. package/charts/index.js +1 -0
  28. package/charts/index.js.map +1 -1
  29. package/components/axes/axis.d.ts +7 -1
  30. package/components/axes/axis.js +9 -2
  31. package/components/axes/axis.js.map +1 -1
  32. package/components/axes/hover-axis.d.ts +10 -0
  33. package/components/axes/hover-axis.js +235 -0
  34. package/components/axes/hover-axis.js.map +1 -0
  35. package/components/axes/two-dimensional-axes.js +8 -3
  36. package/components/axes/two-dimensional-axes.js.map +1 -1
  37. package/components/essentials/color-scale-legend.d.ts +11 -0
  38. package/components/essentials/color-scale-legend.js +236 -0
  39. package/components/essentials/color-scale-legend.js.map +1 -0
  40. package/components/graphs/bar-stacked.d.ts +1 -0
  41. package/components/graphs/bar-stacked.js +16 -0
  42. package/components/graphs/bar-stacked.js.map +1 -1
  43. package/components/graphs/heatmap.d.ts +25 -0
  44. package/components/graphs/heatmap.js +369 -0
  45. package/components/graphs/heatmap.js.map +1 -0
  46. package/components/index.d.ts +2 -0
  47. package/components/index.js +2 -0
  48. package/components/index.js.map +1 -1
  49. package/configuration-non-customizable.d.ts +12 -0
  50. package/configuration-non-customizable.js +13 -0
  51. package/configuration-non-customizable.js.map +1 -1
  52. package/configuration.d.ts +2 -1
  53. package/configuration.js +13 -1
  54. package/configuration.js.map +1 -1
  55. package/demo/data/CHART_TYPES.d.ts +5 -0
  56. package/demo/data/CHART_TYPES.js +5 -0
  57. package/demo/data/CHART_TYPES.js.map +1 -1
  58. package/demo/data/bundle.js +1 -1
  59. package/demo/data/heatmap.d.ts +96 -0
  60. package/demo/data/heatmap.js +1135 -0
  61. package/demo/data/heatmap.js.map +1 -0
  62. package/demo/data/index.d.ts +1 -0
  63. package/demo/data/index.js +30 -0
  64. package/demo/data/index.js.map +1 -1
  65. package/demo/styles.css +16458 -9179
  66. package/demo/styles.css.map +1 -1
  67. package/demo/styles.min.css +1 -1
  68. package/demo/styles.min.css.map +1 -1
  69. package/demo/tsconfig.tsbuildinfo +18 -4
  70. package/interfaces/charts.d.ts +35 -2
  71. package/interfaces/charts.js.map +1 -1
  72. package/interfaces/components.js.map +1 -1
  73. package/interfaces/enums.d.ts +22 -0
  74. package/interfaces/enums.js +25 -0
  75. package/interfaces/enums.js.map +1 -1
  76. package/interfaces/events.d.ts +13 -1
  77. package/interfaces/events.js +13 -0
  78. package/interfaces/events.js.map +1 -1
  79. package/model/cartesian-charts.d.ts +8 -1
  80. package/model/cartesian-charts.js +4 -2
  81. package/model/cartesian-charts.js.map +1 -1
  82. package/model/heatmap.d.ts +57 -0
  83. package/model/heatmap.js +289 -0
  84. package/model/heatmap.js.map +1 -0
  85. package/model/model.d.ts +1 -1
  86. package/model/model.js +1 -1
  87. package/model/model.js.map +1 -1
  88. package/package.json +1 -1
  89. package/services/canvas-zoom.js +1 -1
  90. package/services/canvas-zoom.js.map +1 -1
  91. package/services/scales-cartesian.d.ts +1 -0
  92. package/services/scales-cartesian.js +16 -0
  93. package/services/scales-cartesian.js.map +1 -1
  94. package/styles/_chart-holder.scss +1 -1
  95. package/styles/color-palatte.scss +96 -0
  96. package/styles/colors.scss +35 -1
  97. package/styles/components/_axis.scss +41 -0
  98. package/styles/components/_color-legend.scss +24 -0
  99. package/styles/components/index.scss +1 -0
  100. package/styles/graphs/_heatmap.scss +70 -0
  101. package/styles/graphs/index.scss +1 -0
  102. package/styles-g10.css +2002 -181
  103. package/styles-g10.css.map +1 -1
  104. package/styles-g10.min.css +1 -1
  105. package/styles-g10.min.css.map +1 -1
  106. package/styles-g100.css +2005 -184
  107. package/styles-g100.css.map +1 -1
  108. package/styles-g100.min.css +1 -1
  109. package/styles-g100.min.css.map +1 -1
  110. package/styles-g90.css +2006 -182
  111. package/styles-g90.css.map +1 -1
  112. package/styles-g90.min.css +1 -1
  113. package/styles-g90.min.css.map +1 -1
  114. package/styles.css +2002 -181
  115. package/styles.css.map +1 -1
  116. package/styles.min.css +1 -1
  117. package/styles.min.css.map +1 -1
  118. package/tsconfig.tsbuildinfo +188 -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.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.2...v0.54.3) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **stacked-bar:** set bar width based on number of domain values ([#1235](https://github.com/carbon-design-system/carbon-charts/issues/1235)) ([758c064](https://github.com/carbon-design-system/carbon-charts/commit/758c064fcbf8f837da400af9bfac9862b2f20d1f)), closes [#1232](https://github.com/carbon-design-system/carbon-charts/issues/1232)
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.54.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.1...v0.54.2) (2022-01-05)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **core:** add background to chart in fullscreen mode ([#1261](https://github.com/carbon-design-system/carbon-charts/issues/1261)) ([7a10ae8](https://github.com/carbon-design-system/carbon-charts/commit/7a10ae867060b8719596fc51ccc455f14b8a8210))
23
+
24
+
25
+
26
+
27
+
28
+ ## [0.54.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.0...v0.54.1) (2022-01-05)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **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))
34
+
35
+
36
+
37
+
38
+
39
+ # [0.54.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.5...v0.54.0) (2021-12-24)
40
+
41
+
42
+ ### Features
43
+
44
+ * **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))
45
+
46
+
47
+
48
+
49
+
6
50
  ## [0.53.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.4...v0.53.5) (2021-12-15)
7
51
 
8
52
 
@@ -49,6 +49,11 @@ declare const _default: {
49
49
  angular: string;
50
50
  vue: string;
51
51
  };
52
+ HeatmapChart: {
53
+ vanilla: string;
54
+ angular: string;
55
+ vue: string;
56
+ };
52
57
  HistogramChart: {
53
58
  vanilla: string;
54
59
  angular: string;
@@ -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
+ };
@@ -22,6 +22,7 @@ export * from './wordcloud';
22
22
  export * from './zoom-bar';
23
23
  export * from './high-scale';
24
24
  export * from './alluvial';
25
+ export * from './heatmap';
25
26
  export * from './CHART_TYPES';
26
27
  export declare enum DemoGroupTypes {
27
28
  UTILITY = "utility",
@@ -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
+ }
@@ -21,3 +21,4 @@ export * from './treemap';
21
21
  export * from './circle-pack';
22
22
  export * from './wordcloud';
23
23
  export * from './alluvial';
24
+ export * from './heatmap';
@@ -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
+ }
@@ -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
+ }
@@ -8,5 +8,6 @@ export declare class StackedBar extends Bar {
8
8
  handleLegendOnHover: (event: CustomEvent<any>) => void;
9
9
  handleLegendMouseOut: (event: CustomEvent<any>) => void;
10
10
  addEventListeners(): void;
11
+ protected getBarWidth(): any;
11
12
  destroy(): void;
12
13
  }
@@ -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?: object;
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
+ }
@@ -225,3 +225,25 @@ export declare enum LegendItemType {
225
225
  QUARTILE = "quartile",
226
226
  ZOOM = "zoom"
227
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
+ }
@@ -57,7 +57,10 @@ export declare enum Axis {
57
57
  LABEL_MOUSEOVER = "axis-label-mouseover",
58
58
  LABEL_MOUSEMOVE = "axis-label-mousemove",
59
59
  LABEL_CLICK = "axis-label-click",
60
- 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"
61
64
  }
62
65
  /**
63
66
  * enum of all area graph events
@@ -216,3 +219,12 @@ export declare enum Meter {
216
219
  METER_MOUSEOUT = "meter-mouseout",
217
220
  METER_MOUSEMOVE = "meter-mousemove"
218
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
- private assignRangeAndDomains;
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
+ }
@@ -39,7 +39,7 @@ export declare class ChartModel {
39
39
  name: string;
40
40
  data: any;
41
41
  }[];
42
- getStackKeys({ bins, groups }: {
42
+ getStackKeys({ bins, groups }?: {
43
43
  bins?: any;
44
44
  groups?: any;
45
45
  }): any;
@@ -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;