@carbon/charts 1.16.3 → 1.16.5
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 +22 -0
- package/dist/{_baseEach-DHzZsRNB.mjs → _baseEach-Bp7pBkX8.mjs} +2 -2
- package/dist/{_baseEach-DHzZsRNB.mjs.map → _baseEach-Bp7pBkX8.mjs.map} +1 -1
- package/dist/{angle-utils-D8sXyiIj.mjs → angle-utils-BCx3SRS2.mjs} +2 -2
- package/dist/{angle-utils-D8sXyiIj.mjs.map → angle-utils-BCx3SRS2.mjs.map} +1 -1
- package/dist/chart.d.ts +5 -0
- package/dist/charts/alluvial.d.ts +5 -0
- package/dist/charts/area-stacked.d.ts +5 -0
- package/dist/charts/area.d.ts +5 -0
- package/dist/charts/bar-grouped.d.ts +5 -0
- package/dist/charts/bar-simple.d.ts +5 -0
- package/dist/charts/bar-stacked.d.ts +5 -0
- package/dist/charts/boxplot.d.ts +5 -0
- package/dist/charts/bubble.d.ts +5 -0
- package/dist/charts/bullet.d.ts +5 -0
- package/dist/charts/choropleth.d.ts +6 -1
- package/dist/charts/circle-pack.d.ts +5 -0
- package/dist/charts/combo.d.ts +5 -0
- package/dist/charts/donut.d.ts +5 -0
- package/dist/charts/gauge.d.ts +5 -0
- package/dist/charts/heatmap.d.ts +5 -0
- package/dist/charts/histogram.d.ts +5 -0
- package/dist/charts/index.d.ts +3 -3
- package/dist/charts/line.d.ts +5 -0
- package/dist/charts/lollipop.d.ts +5 -0
- package/dist/charts/meter.d.ts +5 -0
- package/dist/charts/pie.d.ts +5 -0
- package/dist/charts/radar.d.ts +5 -0
- package/dist/charts/scatter.d.ts +5 -0
- package/dist/charts/tree.d.ts +5 -0
- package/dist/charts/treemap.d.ts +5 -0
- package/dist/charts/wordcloud.d.ts +8 -2
- package/dist/{choropleth-ChNZz853.mjs → choropleth-B7eXF9sA.mjs} +60 -112
- package/dist/choropleth-B7eXF9sA.mjs.map +1 -0
- package/dist/{color-scale-utils-C93P4hee.mjs → color-scale-utils-BaTmNvWt.mjs} +7 -12
- package/dist/color-scale-utils-BaTmNvWt.mjs.map +1 -0
- package/dist/components/essentials/title-meter.d.ts +0 -1
- package/dist/components/index.mjs +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/demo/charts/choropleth.d.ts +0 -2
- package/dist/demo/index.mjs +38 -44
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +43 -2
- package/dist/demo/styles.css.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +139 -8
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.d.ts +5 -1
- package/dist/interfaces/charts.d.ts +3 -2
- package/dist/interfaces/index.d.ts +5 -1
- package/dist/interfaces/layout.d.ts +28 -3
- package/dist/interfaces/services.d.ts +39 -0
- package/dist/model/cartesian-charts.d.ts +7 -1
- package/dist/model/circle-pack.d.ts +6 -5
- package/dist/model/heatmap.d.ts +7 -1
- package/dist/model/index.mjs +1 -1
- package/dist/model/model.d.ts +15 -3
- package/dist/model/tree.d.ts +9 -2
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.js +14 -14
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-KxSjz0Gg.mjs → wordcloud-BsEQRUwL.mjs} +50 -18
- package/dist/wordcloud-BsEQRUwL.mjs.map +1 -0
- package/dist/{zoom-B7KfNcH9.mjs → zoom-E2POxw6n.mjs} +8 -13
- package/dist/{zoom-B7KfNcH9.mjs.map → zoom-E2POxw6n.mjs.map} +1 -1
- package/package.json +9 -9
- package/dist/choropleth-ChNZz853.mjs.map +0 -1
- package/dist/color-scale-utils-C93P4hee.mjs.map +0 -1
- package/dist/wordcloud-KxSjz0Gg.mjs.map +0 -1
|
@@ -4,5 +4,10 @@ import { ChartConfig } from '../interfaces/model';
|
|
|
4
4
|
import { AreaChartOptions } from '../interfaces/charts';
|
|
5
5
|
export declare class StackedAreaChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<AreaChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
package/dist/charts/area.d.ts
CHANGED
|
@@ -4,5 +4,10 @@ import { AreaChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class AreaChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<AreaChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
|
@@ -4,5 +4,10 @@ import { ChartConfig } from '../interfaces/model';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class GroupedBarChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BarChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
|
@@ -4,5 +4,10 @@ import { BarChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class SimpleBarChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BarChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
|
@@ -4,5 +4,10 @@ import { BarChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class StackedBarChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BarChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
package/dist/charts/boxplot.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class BoxplotChart extends AxisChart {
|
|
7
7
|
model: BoxplotChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BoxplotChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/bubble.d.ts
CHANGED
|
@@ -4,5 +4,10 @@ import { BubbleChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class BubbleChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BubbleChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
package/dist/charts/bullet.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class BulletChart extends AxisChart {
|
|
7
7
|
model: BulletChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<BulletChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
|
@@ -6,9 +6,14 @@ import { Component } from '../components/component';
|
|
|
6
6
|
import { Modal } from '../components/essentials/modal';
|
|
7
7
|
import { LayoutComponent } from '../components/layout/layout';
|
|
8
8
|
import { Tooltip } from '../components/essentials/tooltip';
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class ChoroplethChart extends Chart {
|
|
10
10
|
model: ChoroplethModel;
|
|
11
11
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<ChoroplethChartOptions>);
|
|
12
12
|
protected getChartComponents(graphFrameComponents: any[], configs?: any): (Tooltip | Modal | LayoutComponent)[];
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
15
|
+
*
|
|
16
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
17
|
+
*/
|
|
13
18
|
getComponents(): Component[];
|
|
14
19
|
}
|
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class CirclePackChart extends Chart {
|
|
7
7
|
model: CirclePackChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<CirclePackChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/combo.d.ts
CHANGED
|
@@ -5,5 +5,10 @@ import { Component } from '../components/component';
|
|
|
5
5
|
export declare class ComboChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<ComboChartOptions>);
|
|
7
7
|
getGraphComponents(): Component[];
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
10
|
+
*
|
|
11
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
12
|
+
*/
|
|
8
13
|
getComponents(): Component[];
|
|
9
14
|
}
|
package/dist/charts/donut.d.ts
CHANGED
|
@@ -4,5 +4,10 @@ import { PieChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class DonutChart extends PieChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<PieChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
package/dist/charts/gauge.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class GaugeChart extends Chart {
|
|
7
7
|
model: GaugeChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<GaugeChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/heatmap.d.ts
CHANGED
|
@@ -10,5 +10,10 @@ export declare class HeatmapChart extends AxisChart {
|
|
|
10
10
|
model: HeatmapModel;
|
|
11
11
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<HeatmapChartOptions>);
|
|
12
12
|
protected getAxisChartComponents(graphFrameComponents: any[], configs?: any): (AxisChartsTooltip | Modal | LayoutComponent)[];
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
15
|
+
*
|
|
16
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
17
|
+
*/
|
|
13
18
|
getComponents(): Component[];
|
|
14
19
|
}
|
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class HistogramChart extends AxisChart {
|
|
7
7
|
model: ChartModelBinned;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<HistogramChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AreaChart } from './area';
|
|
|
3
3
|
import { BoxplotChart } from './boxplot';
|
|
4
4
|
import { BubbleChart } from './bubble';
|
|
5
5
|
import { BulletChart } from './bullet';
|
|
6
|
-
import {
|
|
6
|
+
import { ChoroplethChart } from './choropleth';
|
|
7
7
|
import { CirclePackChart } from './circle-pack';
|
|
8
8
|
import { ComboChart } from './combo';
|
|
9
9
|
import { DonutChart } from './donut';
|
|
@@ -23,5 +23,5 @@ import { SimpleBarChart } from './bar-simple';
|
|
|
23
23
|
import { StackedAreaChart } from './area-stacked';
|
|
24
24
|
import { StackedBarChart } from './bar-stacked';
|
|
25
25
|
import { WordCloudChart } from './wordcloud';
|
|
26
|
-
export { AlluvialChart, AreaChart, BoxplotChart, BubbleChart, BulletChart,
|
|
27
|
-
export type Charts = AlluvialChart | AreaChart | BoxplotChart | BubbleChart | BulletChart |
|
|
26
|
+
export { AlluvialChart, AreaChart, BoxplotChart, BubbleChart, BulletChart, ChoroplethChart, CirclePackChart, ComboChart, DonutChart, GaugeChart, GroupedBarChart, HeatmapChart, HistogramChart, LineChart, LollipopChart, MeterChart, PieChart, RadarChart, ScatterChart, SimpleBarChart, StackedAreaChart, StackedBarChart, TreeChart, TreemapChart, WordCloudChart };
|
|
27
|
+
export type Charts = AlluvialChart | AreaChart | BoxplotChart | BubbleChart | BulletChart | ChoroplethChart | CirclePackChart | ComboChart | DonutChart | GaugeChart | GroupedBarChart | HeatmapChart | HistogramChart | LineChart | LollipopChart | MeterChart | PieChart | RadarChart | ScatterChart | SimpleBarChart | StackedAreaChart | StackedBarChart | TreeChart | TreemapChart | WordCloudChart;
|
package/dist/charts/line.d.ts
CHANGED
|
@@ -4,5 +4,10 @@ import { LineChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class LineChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<LineChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
|
@@ -4,5 +4,10 @@ import { LollipopChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class LollipopChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<LollipopChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
package/dist/charts/meter.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class MeterChart extends Chart {
|
|
7
7
|
model: MeterChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<MeterChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/pie.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class PieChart extends Chart {
|
|
7
7
|
model: PieChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<PieChartOptions>, extending?: boolean);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/radar.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class RadarChart extends Chart {
|
|
7
7
|
model: RadarChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<RadarChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/scatter.d.ts
CHANGED
|
@@ -4,5 +4,10 @@ import { ScatterChartOptions } from '../interfaces/charts';
|
|
|
4
4
|
import { Component } from '../components/component';
|
|
5
5
|
export declare class ScatterChart extends AxisChart {
|
|
6
6
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<ScatterChartOptions>);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
11
|
+
*/
|
|
7
12
|
getComponents(): Component[];
|
|
8
13
|
}
|
package/dist/charts/tree.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class TreeChart extends Chart {
|
|
7
7
|
model: TreeChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<TreeChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
package/dist/charts/treemap.d.ts
CHANGED
|
@@ -6,5 +6,10 @@ import { Component } from '../components/component';
|
|
|
6
6
|
export declare class TreemapChart extends Chart {
|
|
7
7
|
model: TreemapChartModel;
|
|
8
8
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<TreemapChartOptions>);
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
11
|
+
*
|
|
12
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
13
|
+
*/
|
|
9
14
|
getComponents(): Component[];
|
|
10
15
|
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { Chart } from '../chart';
|
|
2
2
|
import { WordCloudModel } from '../model/wordcloud';
|
|
3
3
|
import { ChartConfig } from '../interfaces/model';
|
|
4
|
-
import {
|
|
4
|
+
import { WordCloudChartOptions } from '../interfaces/charts';
|
|
5
|
+
import { WorldCloudChartOptions } from '../interfaces';
|
|
5
6
|
import { Component } from '../components/component';
|
|
6
7
|
export declare class WordCloudChart extends Chart {
|
|
7
8
|
model: WordCloudModel;
|
|
8
|
-
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<WorldCloudChartOptions>);
|
|
9
|
+
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<WordCloudChartOptions | WorldCloudChartOptions>);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the components to be rendered inside the graph frame.
|
|
12
|
+
*
|
|
13
|
+
* @returns {Component[]} An array of components to be rendered.
|
|
14
|
+
*/
|
|
9
15
|
getComponents(): Component[];
|
|
10
16
|
}
|