@carbon/charts 0.50.10 → 0.51.0
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/src/charts/alluvial.d.ts +2 -0
- package/build/src/charts/bullet.d.ts +2 -0
- package/build/src/charts/radar.d.ts +3 -1
- package/build/src/charts/tree.d.ts +2 -0
- package/build/src/charts/treemap.d.ts +2 -0
- package/build/src/charts/wordcloud.d.ts +2 -0
- package/build/src/components/graphs/bullet.d.ts +0 -1
- package/build/src/model/alluvial.d.ts +8 -0
- package/build/src/model/boxplot.d.ts +1 -0
- package/build/src/model/bullet.d.ts +14 -0
- package/build/src/model/cartesian-charts.d.ts +0 -1
- package/build/src/model/circle-pack.d.ts +10 -0
- package/build/src/model/gauge.d.ts +4 -1
- package/build/src/model/meter.d.ts +1 -0
- package/build/src/model/model.d.ts +2 -0
- package/build/src/model/pie.d.ts +1 -0
- package/build/src/model/radar.d.ts +7 -0
- package/build/src/model/tree.d.ts +14 -0
- package/build/src/model/treemap.d.ts +8 -0
- package/build/src/model/wordcloud.d.ts +7 -0
- package/build/src/services/scales-cartesian.d.ts +1 -1
- package/bundle.js +1 -1
- package/chart.js +42 -20
- package/chart.js.map +1 -1
- package/charts/alluvial.d.ts +2 -0
- package/charts/alluvial.js +2 -0
- package/charts/alluvial.js.map +1 -1
- package/charts/bullet.d.ts +2 -0
- package/charts/bullet.js +2 -0
- package/charts/bullet.js.map +1 -1
- package/charts/radar.d.ts +3 -1
- package/charts/radar.js +3 -7
- package/charts/radar.js.map +1 -1
- package/charts/tree.d.ts +2 -0
- package/charts/tree.js +2 -0
- package/charts/tree.js.map +1 -1
- package/charts/treemap.d.ts +2 -0
- package/charts/treemap.js +2 -0
- package/charts/treemap.js.map +1 -1
- package/charts/wordcloud.d.ts +2 -0
- package/charts/wordcloud.js +3 -0
- package/charts/wordcloud.js.map +1 -1
- package/components/graphs/bullet.d.ts +0 -1
- package/components/graphs/bullet.js +1 -12
- package/components/graphs/bullet.js.map +1 -1
- package/model/alluvial.d.ts +8 -0
- package/model/alluvial.js +47 -0
- package/model/alluvial.js.map +1 -0
- package/model/boxplot.d.ts +1 -0
- package/model/boxplot.js +54 -0
- package/model/boxplot.js.map +1 -1
- package/model/bullet.d.ts +14 -0
- package/model/bullet.js +74 -0
- package/model/bullet.js.map +1 -0
- package/model/cartesian-charts.d.ts +0 -1
- package/model/cartesian-charts.js +0 -11
- package/model/cartesian-charts.js.map +1 -1
- package/model/circle-pack.d.ts +10 -0
- package/model/circle-pack.js +51 -0
- package/model/circle-pack.js.map +1 -1
- package/model/gauge.d.ts +4 -1
- package/model/gauge.js +24 -1
- package/model/gauge.js.map +1 -1
- package/model/meter.d.ts +1 -0
- package/model/meter.js +40 -0
- package/model/meter.js.map +1 -1
- package/model/model.d.ts +2 -0
- package/model/model.js +14 -0
- package/model/model.js.map +1 -1
- package/model/pie.d.ts +1 -0
- package/model/pie.js +21 -0
- package/model/pie.js.map +1 -1
- package/model/radar.d.ts +7 -0
- package/model/radar.js +52 -0
- package/model/radar.js.map +1 -0
- package/model/tree.d.ts +14 -0
- package/model/tree.js +56 -0
- package/model/tree.js.map +1 -0
- package/model/treemap.d.ts +8 -0
- package/model/treemap.js +37 -0
- package/model/treemap.js.map +1 -0
- package/model/wordcloud.d.ts +7 -0
- package/model/wordcloud.js +47 -0
- package/model/wordcloud.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +139 -30
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.51.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.10...v0.51.0) (2021-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **core:** add toolbar to non-cartesian charts ([#1191](https://github.com/carbon-design-system/carbon-charts/issues/1191)) ([3574f4f](https://github.com/carbon-design-system/carbon-charts/commit/3574f4f376cc064e0f58de14c61d6442c527aa17))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.50.10](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.9...v0.50.10) (2021-10-27)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Chart } from '../chart';
|
|
2
|
+
import { AlluvialChartModel } from '../model/alluvial';
|
|
2
3
|
import { ChartConfig, AlluvialChartOptions } from '../interfaces/index';
|
|
3
4
|
export declare class AlluvialChart extends Chart {
|
|
5
|
+
model: AlluvialChartModel;
|
|
4
6
|
constructor(holder: Element, chartConfigs: ChartConfig<AlluvialChartOptions>);
|
|
5
7
|
getComponents(): any[];
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AxisChart } from '../axis-chart';
|
|
2
|
+
import { BulletChartModel } from '../model/bullet';
|
|
2
3
|
import { ChartConfig, BulletChartOptions } from '../interfaces/index';
|
|
3
4
|
export declare class BulletChart extends AxisChart {
|
|
5
|
+
model: BulletChartModel;
|
|
4
6
|
constructor(holder: Element, chartConfigs: ChartConfig<BulletChartOptions>);
|
|
5
7
|
getComponents(): any[];
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { RadarChartModel } from '../model/radar';
|
|
1
2
|
import { Chart } from '../chart';
|
|
2
3
|
import { ChartConfig, RadarChartOptions } from '../interfaces/index';
|
|
3
4
|
export declare class RadarChart extends Chart {
|
|
4
|
-
|
|
5
|
+
model: RadarChartModel;
|
|
6
|
+
constructor(holder: Element, chartConfigs: ChartConfig<RadarChartOptions>);
|
|
5
7
|
getComponents(): any[];
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Chart } from '../chart';
|
|
2
|
+
import { TreeChartModel } from '../model/tree';
|
|
2
3
|
import { ChartConfig, TreeChartOptions } from '../interfaces/index';
|
|
3
4
|
export declare class TreeChart extends Chart {
|
|
5
|
+
model: TreeChartModel;
|
|
4
6
|
constructor(holder: Element, chartConfigs: ChartConfig<TreeChartOptions>);
|
|
5
7
|
getComponents(): any[];
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Chart } from '../chart';
|
|
2
|
+
import { TreemapChartModel } from '../model/treemap';
|
|
2
3
|
import { ChartConfig, TreemapChartOptions } from '../interfaces/index';
|
|
3
4
|
export declare class TreemapChart extends Chart {
|
|
5
|
+
model: TreemapChartModel;
|
|
4
6
|
constructor(holder: Element, chartConfigs: ChartConfig<TreemapChartOptions>);
|
|
5
7
|
getComponents(): any[];
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { WordCloudModel } from '../model/wordcloud';
|
|
1
2
|
import { Chart } from '../chart';
|
|
2
3
|
import { ChartConfig, WorldCloudChartOptions } from '../interfaces/index';
|
|
3
4
|
export declare class WordCloudChart extends Chart {
|
|
5
|
+
model: WordCloudModel;
|
|
4
6
|
constructor(holder: Element, chartConfigs: ChartConfig<WorldCloudChartOptions>);
|
|
5
7
|
getComponents(): any[];
|
|
6
8
|
}
|
|
@@ -7,7 +7,6 @@ export declare class Bullet extends Component {
|
|
|
7
7
|
render(animate: boolean): void;
|
|
8
8
|
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
9
9
|
handleLegendMouseOut: (event: CustomEvent<any>) => void;
|
|
10
|
-
getMatchingRangeIndexForDatapoint(datum: any): any;
|
|
11
10
|
addEventListeners(): void;
|
|
12
11
|
destroy(): void;
|
|
13
12
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
+
/**
|
|
3
|
+
* Bullet chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class BulletChartModel extends ChartModelCartesian {
|
|
6
|
+
constructor(services: any);
|
|
7
|
+
/**
|
|
8
|
+
* Determines the index of the performance area titles to use
|
|
9
|
+
* @param datum
|
|
10
|
+
* @returns number
|
|
11
|
+
*/
|
|
12
|
+
getMatchingRangeIndexForDatapoint(datum: any): any;
|
|
13
|
+
getTabularDataArray(): any[];
|
|
14
|
+
}
|
|
@@ -6,7 +6,6 @@ export declare class ChartModelCartesian extends ChartModel {
|
|
|
6
6
|
constructor(services: any);
|
|
7
7
|
private assignRangeAndDomains;
|
|
8
8
|
getTabularDataArray(): any[];
|
|
9
|
-
exportToCSV(): void;
|
|
10
9
|
setData(newData: any): any;
|
|
11
10
|
/**
|
|
12
11
|
* @param zoomBarData any special zoom bar data to use instead of the model data
|
|
@@ -23,4 +23,14 @@ export declare class CirclePackChartModel extends ChartModel {
|
|
|
23
23
|
hasParentNode(): boolean;
|
|
24
24
|
setDataGroups(): void;
|
|
25
25
|
protected setChildrenDataGroup(node: any, name: any): any;
|
|
26
|
+
getTabularDataArray(): string[][];
|
|
27
|
+
/**
|
|
28
|
+
* Recursively determine the relationship between all the nested elements in the child
|
|
29
|
+
* @param children: Object
|
|
30
|
+
* @param parent: String
|
|
31
|
+
* @param result: Array<Object>
|
|
32
|
+
* @param totalSum: number
|
|
33
|
+
* @returns: number
|
|
34
|
+
*/
|
|
35
|
+
private getChildrenDatums;
|
|
26
36
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ChartModel } from './model';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The gauge chart model layer
|
|
4
|
+
*/
|
|
3
5
|
export declare class GaugeChartModel extends ChartModel {
|
|
4
6
|
constructor(services: any);
|
|
5
7
|
getDataGroups(): any;
|
|
8
|
+
getTabularDataArray(): any[];
|
|
6
9
|
}
|
|
@@ -96,6 +96,8 @@ export declare class ChartModel {
|
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
98
|
protected transformToTabularData(data: any): any[];
|
|
99
|
+
getTabularDataArray(): any[];
|
|
100
|
+
exportToCSV(): void;
|
|
99
101
|
protected getTabularData(data: any): any[];
|
|
100
102
|
protected sanitize(data: any): any;
|
|
101
103
|
protected updateAllDataGroups(): void;
|
package/build/src/model/pie.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
+
* as well as some misc. information to be shared among components */
|
|
4
|
+
export declare class RadarChartModel extends ChartModelCartesian {
|
|
5
|
+
constructor(services: any);
|
|
6
|
+
getTabularDataArray(): any[][];
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* The tree chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class TreeChartModel extends ChartModel {
|
|
6
|
+
constructor(services: any);
|
|
7
|
+
getTabularDataArray(): string[][];
|
|
8
|
+
/**
|
|
9
|
+
* Determine the child parent relationship in nested data
|
|
10
|
+
* @param datum: Object
|
|
11
|
+
* @param result: Array<Object>
|
|
12
|
+
*/
|
|
13
|
+
private getChildrenDatums;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
+
* as well as some misc. information to be shared among components */
|
|
4
|
+
export declare class WordCloudModel extends ChartModel {
|
|
5
|
+
constructor(services: any);
|
|
6
|
+
getTabularDataArray(): any[];
|
|
7
|
+
}
|
|
@@ -57,7 +57,7 @@ export declare class CartesianScales extends Service {
|
|
|
57
57
|
getMainYScaleType(): any;
|
|
58
58
|
getDomainIdentifier(datum?: any): any;
|
|
59
59
|
getRangeIdentifier(datum?: any): any;
|
|
60
|
-
extendsDomain(axisPosition: AxisPositions, domain: any):
|
|
60
|
+
extendsDomain(axisPosition: AxisPositions, domain: any): number[] | Date[];
|
|
61
61
|
protected findVerticalAxesPositions(): {
|
|
62
62
|
primary: AxisPositions;
|
|
63
63
|
secondary: AxisPositions;
|