@carbon/charts 0.54.13 → 0.54.14
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 +11 -0
- package/build/demo/data/heatmap.d.ts +34 -0
- package/build/src/components/essentials/color-scale-legend.d.ts +7 -1
- package/build/src/model/heatmap.d.ts +2 -2
- package/bundle.js +1 -1
- package/components/essentials/color-scale-legend.d.ts +7 -1
- package/components/essentials/color-scale-legend.js +108 -114
- package/components/essentials/color-scale-legend.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/heatmap.d.ts +34 -0
- package/demo/data/heatmap.js +18 -0
- package/demo/data/heatmap.js.map +1 -1
- package/demo/data/index.js +5 -0
- package/demo/data/index.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +3 -3
- package/model/heatmap.d.ts +2 -2
- package/model/heatmap.js +12 -24
- package/model/heatmap.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.14](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.13...v0.54.14) (2022-03-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** enable heatmap value domain to support small values ([#1325](https://github.com/carbon-design-system/carbon-charts/issues/1325)) ([378845c](https://github.com/carbon-design-system/carbon-charts/commit/378845c040681e9a528357487cd60352777b95d3)), closes [#1321](https://github.com/carbon-design-system/carbon-charts/issues/1321) [#1326](https://github.com/carbon-design-system/carbon-charts/issues/1326)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.54.13](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.12...v0.54.13) (2022-03-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @carbon/charts
|
|
@@ -46,6 +46,40 @@ export declare const heatmapQuantizeLegendOption: {
|
|
|
46
46
|
};
|
|
47
47
|
experimental: boolean;
|
|
48
48
|
};
|
|
49
|
+
export declare const heatmapPositiveNegativeOptions: {
|
|
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
|
+
};
|
|
62
|
+
};
|
|
63
|
+
heatmap: {
|
|
64
|
+
colorLegend: {
|
|
65
|
+
title: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
experimental: boolean;
|
|
69
|
+
} & {
|
|
70
|
+
title: string;
|
|
71
|
+
heatmap: {
|
|
72
|
+
colorLegend: {
|
|
73
|
+
title: string;
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const heatmapPositiveNegativeData: {
|
|
79
|
+
value: number;
|
|
80
|
+
letter: string;
|
|
81
|
+
month: string;
|
|
82
|
+
}[];
|
|
49
83
|
export declare const heatmapDomainOptions: {
|
|
50
84
|
title: string;
|
|
51
85
|
axes: {
|
|
@@ -5,7 +5,13 @@ export declare class ColorScaleLegend extends Legend {
|
|
|
5
5
|
renderType: RenderTypes;
|
|
6
6
|
private gradient_id;
|
|
7
7
|
init(): void;
|
|
8
|
-
|
|
8
|
+
handleAxisCompleteEvent: (event: CustomEvent<any>) => void;
|
|
9
9
|
render(animate?: boolean): void;
|
|
10
|
+
drawLinear(colorPairing: any, legendGroupElement: any, barWidth: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* Renders quantized legend
|
|
13
|
+
* @returns number (range start)
|
|
14
|
+
*/
|
|
15
|
+
drawQuantize(colorPairing: any, colorScheme: any, customColorsEnabled: any, legendGroupElement: any, barWidth: any): number;
|
|
10
16
|
destroy(): void;
|
|
11
17
|
}
|
|
@@ -12,11 +12,11 @@ export declare class HeatmapModel extends ChartModelCartesian {
|
|
|
12
12
|
* Get min and maximum value of the display data
|
|
13
13
|
* @returns Array consisting of smallest and largest values in data
|
|
14
14
|
*/
|
|
15
|
-
getValueDomain():
|
|
15
|
+
getValueDomain(): number[];
|
|
16
16
|
/**
|
|
17
17
|
* @override
|
|
18
18
|
* @param value
|
|
19
|
-
* @returns
|
|
19
|
+
* @returns string
|
|
20
20
|
*/
|
|
21
21
|
getFillColor(value: number): any;
|
|
22
22
|
/**
|