@carbon/charts 1.9.0-rc.5 → 1.10.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 +31 -0
- package/LICENSE.md +201 -0
- package/README.md +9 -19
- package/dist/_baseEach-603421de.mjs.map +1 -1
- package/dist/_baseEach-cdac417f.js.map +1 -1
- package/dist/angle-utils-6f166b40.js.map +1 -1
- package/dist/angle-utils-8b6ce998.mjs.map +1 -1
- package/dist/axis-chart.d.ts +13 -13
- package/dist/chart.d.ts +18 -18
- package/dist/charts/alluvial.d.ts +10 -10
- package/dist/charts/area-stacked.d.ts +8 -8
- package/dist/charts/area.d.ts +8 -8
- package/dist/charts/bar-grouped.d.ts +8 -8
- package/dist/charts/bar-simple.d.ts +8 -8
- package/dist/charts/bar-stacked.d.ts +8 -8
- package/dist/charts/boxplot.d.ts +10 -10
- package/dist/charts/bubble.d.ts +8 -8
- package/dist/charts/bullet.d.ts +10 -10
- package/dist/charts/choropleth.d.ts +14 -14
- package/dist/charts/circle-pack.d.ts +10 -10
- package/dist/charts/combo.d.ts +9 -9
- package/dist/charts/donut.d.ts +8 -8
- package/dist/charts/gauge.d.ts +10 -10
- package/dist/charts/heatmap.d.ts +14 -14
- package/dist/charts/histogram.d.ts +10 -10
- package/dist/charts/index.d.ts +27 -27
- package/dist/charts/line.d.ts +8 -8
- package/dist/charts/lollipop.d.ts +8 -8
- package/dist/charts/meter.d.ts +10 -10
- package/dist/charts/pie.d.ts +10 -10
- package/dist/charts/radar.d.ts +10 -10
- package/dist/charts/scatter.d.ts +8 -8
- package/dist/charts/tree.d.ts +10 -10
- package/dist/charts/treemap.d.ts +10 -10
- package/dist/charts/wordcloud.d.ts +10 -10
- package/dist/choropleth-4ac6ac20.js.map +1 -1
- package/dist/choropleth-f473ea0d.mjs.map +1 -1
- package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -1
- package/dist/color-scale-utils-7d463811.js.map +1 -1
- package/dist/components/axes/axis.d.ts +24 -24
- package/dist/components/axes/chart-clip.d.ts +13 -13
- package/dist/components/axes/grid-brush.d.ts +10 -10
- package/dist/components/axes/grid.d.ts +22 -22
- package/dist/components/axes/hover-axis.d.ts +10 -10
- package/dist/components/axes/index.d.ts +12 -12
- package/dist/components/axes/ruler-binned.d.ts +10 -7
- package/dist/components/axes/ruler-stacked.d.ts +4 -4
- package/dist/components/axes/ruler.d.ts +30 -27
- package/dist/components/axes/toolbar.d.ts +40 -40
- package/dist/components/axes/two-dimensional-axes.d.ts +16 -16
- package/dist/components/axes/zero-line.d.ts +7 -7
- package/dist/components/axes/zoom-bar.d.ts +31 -28
- package/dist/components/component.d.ts +30 -30
- package/dist/components/diagrams/buildPaths.d.ts +40 -40
- package/dist/components/diagrams/index.d.ts +2 -2
- package/dist/components/diagrams/markerDefinitions.d.ts +37 -37
- package/dist/components/essentials/canvas-chart-clip.d.ts +6 -6
- package/dist/components/essentials/color-scale-legend.d.ts +20 -20
- package/dist/components/essentials/geo-projection.d.ts +16 -16
- package/dist/components/essentials/highlights.d.ts +13 -13
- package/dist/components/essentials/index.d.ts +11 -11
- package/dist/components/essentials/legend.d.ts +11 -11
- package/dist/components/essentials/modal.d.ts +14 -14
- package/dist/components/essentials/threshold.d.ts +20 -20
- package/dist/components/essentials/title-meter.d.ts +30 -30
- package/dist/components/essentials/title.d.ts +20 -20
- package/dist/components/essentials/tooltip-axis.d.ts +4 -4
- package/dist/components/essentials/tooltip.d.ts +22 -22
- package/dist/components/graphs/alluvial.d.ts +14 -14
- package/dist/components/graphs/area-stacked.d.ts +11 -11
- package/dist/components/graphs/area.d.ts +12 -12
- package/dist/components/graphs/bar-grouped.d.ts +22 -22
- package/dist/components/graphs/bar-simple.d.ts +12 -12
- package/dist/components/graphs/bar-stacked.d.ts +13 -13
- package/dist/components/graphs/bar.d.ts +5 -5
- package/dist/components/graphs/boxplot.d.ts +9 -9
- package/dist/components/graphs/bubble.d.ts +13 -13
- package/dist/components/graphs/bullet.d.ts +12 -12
- package/dist/components/graphs/choropleth.d.ts +6 -6
- package/dist/components/graphs/circle-pack.d.ts +19 -19
- package/dist/components/graphs/donut.d.ts +9 -9
- package/dist/components/graphs/gauge.d.ts +27 -27
- package/dist/components/graphs/heatmap.d.ts +25 -25
- package/dist/components/graphs/histogram.d.ts +12 -12
- package/dist/components/graphs/index.d.ts +28 -28
- package/dist/components/graphs/line.d.ts +11 -11
- package/dist/components/graphs/lollipop.d.ts +14 -14
- package/dist/components/graphs/meter.d.ts +10 -10
- package/dist/components/graphs/pie.d.ts +16 -16
- package/dist/components/graphs/radar.d.ts +25 -25
- package/dist/components/graphs/scatter-stacked.d.ts +8 -8
- package/dist/components/graphs/scatter.d.ts +21 -21
- package/dist/components/graphs/skeleton-lines.d.ts +12 -12
- package/dist/components/graphs/skeleton.d.ts +23 -23
- package/dist/components/graphs/tree.d.ts +9 -9
- package/dist/components/graphs/treemap.d.ts +11 -11
- package/dist/components/graphs/wordcloud.d.ts +12 -12
- package/dist/components/index.d.ts +6 -6
- package/dist/components/layout/index.d.ts +2 -2
- package/dist/components/layout/layout.d.ts +18 -18
- package/dist/components/layout/spacer.d.ts +5 -5
- package/dist/configuration-non-customizable.d.ts +263 -263
- package/dist/configuration.d.ts +48 -48
- package/dist/demo/charts/alluvial.d.ts +109 -109
- package/dist/demo/charts/area.d.ts +224 -224
- package/dist/demo/charts/bar.d.ts +681 -681
- package/dist/demo/charts/boxplot.d.ts +34 -34
- package/dist/demo/charts/bubble.d.ts +141 -141
- package/dist/demo/charts/bullet.d.ts +24 -24
- package/dist/demo/charts/chart-types.d.ts +128 -128
- package/dist/demo/charts/choropleth.d.ts +738 -738
- package/dist/demo/charts/circle-pack.d.ts +91 -91
- package/dist/demo/charts/combo.d.ts +482 -482
- package/dist/demo/charts/donut.d.ts +64 -64
- package/dist/demo/charts/gauge.d.ts +40 -40
- package/dist/demo/charts/heatmap.d.ts +125 -125
- package/dist/demo/charts/hightlight.d.ts +40 -40
- package/dist/demo/charts/histogram.d.ts +63 -63
- package/dist/demo/charts/index.d.ts +55 -62
- package/dist/demo/charts/line.d.ts +361 -361
- package/dist/demo/charts/lollipop.d.ts +39 -39
- package/dist/demo/charts/meter.d.ts +95 -95
- package/dist/demo/charts/pie.d.ts +46 -46
- package/dist/demo/charts/radar.d.ts +63 -63
- package/dist/demo/charts/scatter.d.ts +118 -118
- package/dist/demo/charts/step.d.ts +96 -96
- package/dist/demo/charts/time-series-axis.d.ts +293 -293
- package/dist/demo/charts/toolbar.d.ts +12 -12
- package/dist/demo/charts/topojson-110.d.ts +360 -360
- package/dist/demo/charts/tree.d.ts +30 -30
- package/dist/demo/charts/treemap.d.ts +15 -15
- package/dist/demo/charts/wordcloud.d.ts +14 -14
- package/dist/demo/charts/zoom-bar.d.ts +79 -79
- package/dist/demo/index.d.ts +4 -4
- package/dist/demo/index.js +153 -166
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/index.mjs +1645 -1834
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +567 -262
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/index.d.ts +2 -2
- package/dist/demo/utils/sandbox.d.ts +38 -39
- package/dist/demo/utils/story-widgets.d.ts +7 -7
- package/dist/index-a266373c.mjs.map +1 -1
- package/dist/index-becfb567.mjs.map +1 -1
- package/dist/index-d865d500.js.map +1 -1
- package/dist/index-f23685eb.js.map +1 -1
- package/dist/index.d.ts +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/a11y.d.ts +12 -12
- package/dist/interfaces/axis-scales.d.ts +201 -201
- package/dist/interfaces/charts.d.ts +520 -517
- package/dist/interfaces/components.d.ts +231 -231
- package/dist/interfaces/enums.d.ts +261 -261
- package/dist/interfaces/events.d.ts +239 -239
- package/dist/interfaces/index.d.ts +12 -11
- package/dist/interfaces/layout.d.ts +21 -21
- package/dist/interfaces/model.d.ts +35 -35
- package/dist/interfaces/services.d.ts +20 -20
- package/dist/interfaces/truncation.d.ts +17 -17
- package/dist/model/alluvial.d.ts +8 -8
- package/dist/model/binned-charts.d.ts +7 -7
- package/dist/model/boxplot.d.ts +14 -14
- package/dist/model/bullet.d.ts +14 -14
- package/dist/model/cartesian-charts.d.ts +24 -24
- package/dist/model/choropleth.d.ts +29 -29
- package/dist/model/circle-pack.d.ts +36 -36
- package/dist/model/gauge.d.ts +9 -9
- package/dist/model/heatmap.d.ts +57 -57
- package/dist/model/index.d.ts +16 -16
- package/dist/model/index.js.map +1 -1
- package/dist/model/index.mjs.map +1 -1
- package/dist/model/meter.d.ts +20 -20
- package/dist/model/model.d.ts +110 -110
- package/dist/model/pie.d.ts +9 -9
- package/dist/model/radar.d.ts +7 -7
- package/dist/model/tree.d.ts +14 -14
- package/dist/model/treemap.d.ts +8 -8
- package/dist/model/wordcloud.d.ts +7 -7
- package/dist/services/angle-utils.d.ts +15 -15
- package/dist/services/canvas-zoom.d.ts +11 -11
- package/dist/services/color-scale-utils.d.ts +2 -2
- package/dist/services/curves.d.ts +24 -24
- package/dist/services/essentials/dom-utils.d.ts +45 -45
- package/dist/services/essentials/events.d.ts +8 -8
- package/dist/services/essentials/files.d.ts +7 -7
- package/dist/services/essentials/gradient-utils.d.ts +6 -6
- package/dist/services/essentials/index.d.ts +5 -5
- package/dist/services/essentials/transitions.d.ts +13 -13
- package/dist/services/index.d.ts +9 -9
- package/dist/services/scales-cartesian.d.ts +89 -89
- package/dist/services/service.d.ts +11 -11
- package/dist/services/time-series.d.ts +13 -13
- package/dist/services/zoom.d.ts +21 -21
- package/dist/styles.css +0 -21919
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +150 -144
- package/package.json +48 -33
- package/{dist/styles/colors.scss → scss/_colors.scss} +1 -1
- package/{dist/styles/tokens.scss → scss/_tokens.scss} +6 -15
- package/scss/demos.scss +427 -0
- package/scss/index.scss +31 -0
- package/dist/styles/styles.scss +0 -40
- /package/{dist/styles → scss}/_chart-holder.scss +0 -0
- /package/{dist/styles/color-palatte.scss → scss/_color-palette.scss} +0 -0
- /package/{dist/styles → scss}/_type.scss +0 -0
- /package/{dist/styles → scss}/components/_axis.scss +0 -0
- /package/{dist/styles → scss}/components/_callouts.scss +0 -0
- /package/{dist/styles → scss}/components/_color-legend.scss +0 -0
- /package/{dist/styles → scss}/components/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/_grid-brush.scss +0 -0
- /package/{dist/styles → scss}/components/_grid.scss +0 -0
- /package/{dist/styles → scss}/components/_highlights.scss +0 -0
- /package/{dist/styles → scss}/components/_layout.scss +0 -0
- /package/{dist/styles → scss}/components/_legend.scss +0 -0
- /package/{dist/styles → scss}/components/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/_meter-title.scss +0 -0
- /package/{dist/styles → scss}/components/_modal.scss +0 -0
- /package/{dist/styles → scss}/components/_ruler.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton-lines.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton.scss +0 -0
- /package/{dist/styles → scss}/components/_threshold.scss +0 -0
- /package/{dist/styles → scss}/components/_title.scss +0 -0
- /package/{dist/styles → scss}/components/_toolbar.scss +0 -0
- /package/{dist/styles → scss}/components/_tooltip.scss +0 -0
- /package/{dist/styles → scss}/components/_zero-line.scss +0 -0
- /package/{dist/styles → scss}/components/_zoom-bar.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_card-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_shape-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/index.scss +0 -0
- /package/{dist/styles → scss}/components/index.scss +0 -0
- /package/{dist/styles → scss}/graphs/_alluvial.scss +0 -0
- /package/{dist/styles → scss}/graphs/_area.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bubble.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bullet.scss +0 -0
- /package/{dist/styles → scss}/graphs/_choropleth.scss +0 -0
- /package/{dist/styles → scss}/graphs/_circle-pack.scss +0 -0
- /package/{dist/styles → scss}/graphs/_donut.scss +0 -0
- /package/{dist/styles → scss}/graphs/_gauge.scss +0 -0
- /package/{dist/styles → scss}/graphs/_heatmap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_line.scss +0 -0
- /package/{dist/styles → scss}/graphs/_lollipop.scss +0 -0
- /package/{dist/styles → scss}/graphs/_meter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_pie.scss +0 -0
- /package/{dist/styles → scss}/graphs/_radar.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter-stacked.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_tree.scss +0 -0
- /package/{dist/styles → scss}/graphs/_treemap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_wordcloud.scss +0 -0
- /package/{dist/styles → scss}/graphs/index.scss +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export interface TruncationOptions {
|
|
2
|
-
/**
|
|
3
|
-
* truncation configuration
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* truncation type
|
|
7
|
-
*/
|
|
8
|
-
type?: string;
|
|
9
|
-
/**
|
|
10
|
-
* truncation threshold
|
|
11
|
-
*/
|
|
12
|
-
threshold?: number;
|
|
13
|
-
/**
|
|
14
|
-
* how many characters to be shown
|
|
15
|
-
*/
|
|
16
|
-
numCharacter?: number;
|
|
17
|
-
}
|
|
1
|
+
export interface TruncationOptions {
|
|
2
|
+
/**
|
|
3
|
+
* truncation configuration
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* truncation type
|
|
7
|
+
*/
|
|
8
|
+
type?: string;
|
|
9
|
+
/**
|
|
10
|
+
* truncation threshold
|
|
11
|
+
*/
|
|
12
|
+
threshold?: number;
|
|
13
|
+
/**
|
|
14
|
+
* how many characters to be shown
|
|
15
|
+
*/
|
|
16
|
+
numCharacter?: number;
|
|
17
|
+
}
|
package/dist/model/alluvial.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
-
/**
|
|
3
|
-
* Alluvial chart model layer
|
|
4
|
-
*/
|
|
5
|
-
export declare class AlluvialChartModel extends ChartModelCartesian {
|
|
6
|
-
constructor(services: any);
|
|
7
|
-
getTabularDataArray(): any[];
|
|
8
|
-
}
|
|
1
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
+
/**
|
|
3
|
+
* Alluvial chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class AlluvialChartModel extends ChartModelCartesian {
|
|
6
|
+
constructor(services: any);
|
|
7
|
+
getTabularDataArray(): any[];
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
-
/**
|
|
3
|
-
* this is intended for binned type of charts
|
|
4
|
-
* */
|
|
5
|
-
export declare class ChartModelBinned extends ChartModelCartesian {
|
|
6
|
-
getTabularDataArray(): any[][];
|
|
7
|
-
}
|
|
1
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
+
/**
|
|
3
|
+
* this is intended for binned type of charts
|
|
4
|
+
* */
|
|
5
|
+
export declare class ChartModelBinned extends ChartModelCartesian {
|
|
6
|
+
getTabularDataArray(): any[][];
|
|
7
|
+
}
|
package/dist/model/boxplot.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 BoxplotChartModel extends ChartModelCartesian {
|
|
5
|
-
constructor(services: any);
|
|
6
|
-
getBoxQuartiles(d: any): {
|
|
7
|
-
q_25: number;
|
|
8
|
-
q_50: number;
|
|
9
|
-
q_75: number;
|
|
10
|
-
};
|
|
11
|
-
getBoxplotData(): any[];
|
|
12
|
-
getTabularDataArray(): any[][];
|
|
13
|
-
protected setColorClassNames(): void;
|
|
14
|
-
}
|
|
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 BoxplotChartModel extends ChartModelCartesian {
|
|
5
|
+
constructor(services: any);
|
|
6
|
+
getBoxQuartiles(d: any): {
|
|
7
|
+
q_25: number;
|
|
8
|
+
q_50: number;
|
|
9
|
+
q_75: number;
|
|
10
|
+
};
|
|
11
|
+
getBoxplotData(): any[];
|
|
12
|
+
getTabularDataArray(): any[][];
|
|
13
|
+
protected setColorClassNames(): void;
|
|
14
|
+
}
|
package/dist/model/bullet.d.ts
CHANGED
|
@@ -1,14 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
import { AxisFlavor } from '../interfaces/enums';
|
|
3
|
-
/**
|
|
4
|
-
* This supports adding X and Y Cartesian[2D] zoom data to a ChartModel
|
|
5
|
-
* */
|
|
6
|
-
export declare class ChartModelCartesian extends ChartModel {
|
|
7
|
-
axisFlavor: AxisFlavor;
|
|
8
|
-
constructor(services: any);
|
|
9
|
-
protected assignRangeAndDomains(): {
|
|
10
|
-
primaryDomain: any;
|
|
11
|
-
primaryRange: any;
|
|
12
|
-
secondaryDomain: any;
|
|
13
|
-
secondaryRange: any;
|
|
14
|
-
};
|
|
15
|
-
getTabularDataArray(): any[];
|
|
16
|
-
setData(newData: any): any;
|
|
17
|
-
/**
|
|
18
|
-
* @param zoomBarData any special zoom bar data to use instead of the model data
|
|
19
|
-
*/
|
|
20
|
-
setZoomBarData(newZoomBarData?: any): void;
|
|
21
|
-
getZoomBarData(): any;
|
|
22
|
-
protected sanitizeDateValues(data: any): any;
|
|
23
|
-
protected sanitize(data: any): any;
|
|
24
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
import { AxisFlavor } from '../interfaces/enums';
|
|
3
|
+
/**
|
|
4
|
+
* This supports adding X and Y Cartesian[2D] zoom data to a ChartModel
|
|
5
|
+
* */
|
|
6
|
+
export declare class ChartModelCartesian extends ChartModel {
|
|
7
|
+
axisFlavor: AxisFlavor;
|
|
8
|
+
constructor(services: any);
|
|
9
|
+
protected assignRangeAndDomains(): {
|
|
10
|
+
primaryDomain: any;
|
|
11
|
+
primaryRange: any;
|
|
12
|
+
secondaryDomain: any;
|
|
13
|
+
secondaryRange: any;
|
|
14
|
+
};
|
|
15
|
+
getTabularDataArray(): any[];
|
|
16
|
+
setData(newData: any): any;
|
|
17
|
+
/**
|
|
18
|
+
* @param zoomBarData any special zoom bar data to use instead of the model data
|
|
19
|
+
*/
|
|
20
|
+
setZoomBarData(newZoomBarData?: any): void;
|
|
21
|
+
getZoomBarData(): any;
|
|
22
|
+
protected sanitizeDateValues(data: any): any;
|
|
23
|
+
protected sanitize(data: any): any;
|
|
24
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
/**
|
|
3
|
-
* Base thematic maps chart model layer
|
|
4
|
-
*/
|
|
5
|
-
export declare class ChoroplethModel extends ChartModel {
|
|
6
|
-
private _colorScale;
|
|
7
|
-
private _matrix;
|
|
8
|
-
constructor(services: any);
|
|
9
|
-
/**
|
|
10
|
-
* @override
|
|
11
|
-
* @param value
|
|
12
|
-
* @returns string
|
|
13
|
-
*/
|
|
14
|
-
getFillColor(value: number): any;
|
|
15
|
-
/**
|
|
16
|
-
* Helper function that will generate a dictionary
|
|
17
|
-
*/
|
|
18
|
-
getCombinedData(): {};
|
|
19
|
-
/**
|
|
20
|
-
* Generate tabular data from display data
|
|
21
|
-
* @returns Array<Object>
|
|
22
|
-
*/
|
|
23
|
-
getTabularDataArray(): any[];
|
|
24
|
-
getColorClassName(configs: {
|
|
25
|
-
value?: number;
|
|
26
|
-
originalClassName?: string;
|
|
27
|
-
}): string;
|
|
28
|
-
protected setColorClassNames(): void;
|
|
29
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* Base thematic maps chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class ChoroplethModel extends ChartModel {
|
|
6
|
+
private _colorScale;
|
|
7
|
+
private _matrix;
|
|
8
|
+
constructor(services: any);
|
|
9
|
+
/**
|
|
10
|
+
* @override
|
|
11
|
+
* @param value
|
|
12
|
+
* @returns string
|
|
13
|
+
*/
|
|
14
|
+
getFillColor(value: number): any;
|
|
15
|
+
/**
|
|
16
|
+
* Helper function that will generate a dictionary
|
|
17
|
+
*/
|
|
18
|
+
getCombinedData(): {};
|
|
19
|
+
/**
|
|
20
|
+
* Generate tabular data from display data
|
|
21
|
+
* @returns Array<Object>
|
|
22
|
+
*/
|
|
23
|
+
getTabularDataArray(): any[];
|
|
24
|
+
getColorClassName(configs: {
|
|
25
|
+
value?: number;
|
|
26
|
+
originalClassName?: string;
|
|
27
|
+
}): string;
|
|
28
|
+
protected setColorClassNames(): void;
|
|
29
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
import { LegendItemType } from '../interfaces/enums';
|
|
3
|
-
/** The charting model layer which includes mainly the chart data and options,
|
|
4
|
-
* as well as some misc. information to be shared among components */
|
|
5
|
-
export declare class CirclePackChartModel extends ChartModel {
|
|
6
|
-
parentNode: boolean;
|
|
7
|
-
constructor(services: any);
|
|
8
|
-
setData(newData: any): void;
|
|
9
|
-
setOptions(newOptions: any): void;
|
|
10
|
-
getZoomOptions(options?: any): {
|
|
11
|
-
legend?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
legend: {
|
|
14
|
-
additionalItems: {
|
|
15
|
-
type: LegendItemType;
|
|
16
|
-
name: string;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
setZoom(options?: any): void;
|
|
21
|
-
updateHierarchyLevel(depth: number): void;
|
|
22
|
-
getHierarchyLevel(): any;
|
|
23
|
-
hasParentNode(): boolean;
|
|
24
|
-
setDataGroups(): void;
|
|
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;
|
|
36
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
import { LegendItemType } from '../interfaces/enums';
|
|
3
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
4
|
+
* as well as some misc. information to be shared among components */
|
|
5
|
+
export declare class CirclePackChartModel extends ChartModel {
|
|
6
|
+
parentNode: boolean;
|
|
7
|
+
constructor(services: any);
|
|
8
|
+
setData(newData: any): void;
|
|
9
|
+
setOptions(newOptions: any): void;
|
|
10
|
+
getZoomOptions(options?: any): {
|
|
11
|
+
legend?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
legend: {
|
|
14
|
+
additionalItems: {
|
|
15
|
+
type: LegendItemType;
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
setZoom(options?: any): void;
|
|
21
|
+
updateHierarchyLevel(depth: number): void;
|
|
22
|
+
getHierarchyLevel(): any;
|
|
23
|
+
hasParentNode(): boolean;
|
|
24
|
+
setDataGroups(): void;
|
|
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;
|
|
36
|
+
}
|
package/dist/model/gauge.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
/**
|
|
3
|
-
* The gauge chart model layer
|
|
4
|
-
*/
|
|
5
|
-
export declare class GaugeChartModel extends ChartModel {
|
|
6
|
-
constructor(services: any);
|
|
7
|
-
getDataGroups(): any;
|
|
8
|
-
getTabularDataArray(): any[];
|
|
9
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* The gauge chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class GaugeChartModel extends ChartModel {
|
|
6
|
+
constructor(services: any);
|
|
7
|
+
getDataGroups(): any;
|
|
8
|
+
getTabularDataArray(): any[];
|
|
9
|
+
}
|
package/dist/model/heatmap.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { AxisFlavor } from '../interfaces/enums';
|
|
2
|
-
import { ChartModelCartesian } from './cartesian-charts';
|
|
3
|
-
/** The gauge chart model layer */
|
|
4
|
-
export declare class HeatmapModel extends ChartModelCartesian {
|
|
5
|
-
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(): number[];
|
|
16
|
-
/**
|
|
17
|
-
* @override
|
|
18
|
-
* @param value
|
|
19
|
-
* @returns string
|
|
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(): any;
|
|
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
|
-
}
|
|
1
|
+
import { AxisFlavor } from '../interfaces/enums';
|
|
2
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
3
|
+
/** The gauge chart model layer */
|
|
4
|
+
export declare class HeatmapModel extends ChartModelCartesian {
|
|
5
|
+
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(): number[];
|
|
16
|
+
/**
|
|
17
|
+
* @override
|
|
18
|
+
* @param value
|
|
19
|
+
* @returns string
|
|
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(): any;
|
|
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
|
+
}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { AlluvialChartModel } from './alluvial';
|
|
2
|
-
export { BoxplotChartModel } from './boxplot';
|
|
3
|
-
export { BulletChartModel } from './bullet';
|
|
4
|
-
export { ChartModel,
|
|
5
|
-
export { ChartModelBinned } from './binned-charts';
|
|
6
|
-
export { ChartModelCartesian } from './cartesian-charts';
|
|
7
|
-
export { ChoroplethModel } from './choropleth';
|
|
8
|
-
export { CirclePackChartModel } from './circle-pack';
|
|
9
|
-
export { GaugeChartModel } from './gauge';
|
|
10
|
-
export { HeatmapModel } from './heatmap';
|
|
11
|
-
export { MeterChartModel } from './meter';
|
|
12
|
-
export { PieChartModel } from './pie';
|
|
13
|
-
export { RadarChartModel } from './radar';
|
|
14
|
-
export { TreeChartModel } from './tree';
|
|
15
|
-
export { TreemapChartModel } from './treemap';
|
|
16
|
-
export { WordCloudModel } from './wordcloud';
|
|
1
|
+
export { AlluvialChartModel } from './alluvial';
|
|
2
|
+
export { BoxplotChartModel } from './boxplot';
|
|
3
|
+
export { BulletChartModel } from './bullet';
|
|
4
|
+
export { ChartModel, StackKeysParams } from './model';
|
|
5
|
+
export { ChartModelBinned } from './binned-charts';
|
|
6
|
+
export { ChartModelCartesian } from './cartesian-charts';
|
|
7
|
+
export { ChoroplethModel } from './choropleth';
|
|
8
|
+
export { CirclePackChartModel } from './circle-pack';
|
|
9
|
+
export { GaugeChartModel } from './gauge';
|
|
10
|
+
export { HeatmapModel } from './heatmap';
|
|
11
|
+
export { MeterChartModel } from './meter';
|
|
12
|
+
export { PieChartModel } from './pie';
|
|
13
|
+
export { RadarChartModel } from './radar';
|
|
14
|
+
export { TreeChartModel } from './tree';
|
|
15
|
+
export { TreemapChartModel } from './treemap';
|
|
16
|
+
export { WordCloudModel } from './wordcloud';
|