@carbon/charts 0.41.32 → 0.41.36
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 +37 -1
- package/axis-chart.d.ts +1 -1
- package/axis-chart.js +3 -2
- package/axis-chart.js.map +1 -1
- package/build/demo/data/boxplot.d.ts +34 -0
- package/build/demo/data/combo.d.ts +43 -21
- package/build/demo/data/index.d.ts +6 -0
- package/build/src/axis-chart.d.ts +1 -1
- package/build/src/charts/boxplot.d.ts +8 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/components/component.d.ts +1 -1
- package/build/src/components/graphs/boxplot.d.ts +7 -0
- package/build/src/components/index.d.ts +1 -0
- package/build/src/configuration-non-customizable.d.ts +19 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/axis-scales.d.ts +6 -1
- package/build/src/interfaces/charts.d.ts +7 -1
- package/build/src/interfaces/enums.d.ts +7 -0
- package/build/src/interfaces/events.d.ts +13 -0
- package/build/src/model-boxplot.d.ts +12 -0
- package/build/src/model.d.ts +1 -1
- package/build/src/services/time-series.d.ts +2 -2
- package/bundle.js +1 -1
- package/charts/boxplot.d.ts +8 -0
- package/charts/boxplot.js +55 -0
- package/charts/boxplot.js.map +1 -0
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/components/axes/axis.js +38 -17
- package/components/axes/axis.js.map +1 -1
- package/components/component.d.ts +1 -1
- package/components/component.js.map +1 -1
- package/components/essentials/threshold.js +1 -1
- package/components/essentials/threshold.js.map +1 -1
- package/components/graphs/boxplot.d.ts +7 -0
- package/components/graphs/boxplot.js +420 -0
- package/components/graphs/boxplot.js.map +1 -0
- package/components/graphs/pie.js +12 -4
- package/components/graphs/pie.js.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/configuration-non-customizable.d.ts +19 -0
- package/configuration-non-customizable.js +19 -0
- package/configuration-non-customizable.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +6 -0
- package/configuration.js.map +1 -1
- package/demo/data/boxplot.d.ts +34 -0
- package/demo/data/boxplot.js +48 -0
- package/demo/data/boxplot.js.map +1 -0
- package/demo/data/bubble.js +4 -4
- package/demo/data/bubble.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/combo.d.ts +43 -21
- package/demo/data/combo.js +61 -42
- package/demo/data/combo.js.map +1 -1
- package/demo/data/index.d.ts +6 -0
- package/demo/data/index.js +28 -6
- package/demo/data/index.js.map +1 -1
- package/demo/styles.css +12 -0
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +31 -17
- package/interfaces/axis-scales.d.ts +6 -1
- package/interfaces/axis-scales.js.map +1 -1
- package/interfaces/charts.d.ts +7 -1
- package/interfaces/charts.js.map +1 -1
- package/interfaces/enums.d.ts +7 -0
- package/interfaces/enums.js +8 -0
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.d.ts +13 -0
- package/interfaces/events.js +14 -0
- package/interfaces/events.js.map +1 -1
- package/model-boxplot.d.ts +12 -0
- package/model-boxplot.js +99 -0
- package/model-boxplot.js.map +1 -0
- package/model.d.ts +1 -1
- package/model.js +3 -2
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/services/time-series.d.ts +2 -2
- package/services/time-series.js +16 -12
- package/services/time-series.js.map +1 -1
- package/styles/components/_grid.scss +3 -0
- package/styles-g10.css +3 -0
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +3 -0
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +3 -0
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +3 -0
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +92 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,13 +3,49 @@
|
|
|
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.41.
|
|
6
|
+
## [0.41.36](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.35...v0.41.36) (2021-02-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
## [0.41.35](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.34...v0.41.35) (2021-02-22)
|
|
20
|
+
|
|
21
|
+
**Note:** Version bump only for package @carbon/charts
|
|
22
|
+
|
|
23
|
+
# Change Log
|
|
24
|
+
|
|
25
|
+
All notable changes to this project will be documented in this file. See
|
|
26
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
27
|
+
|
|
28
|
+
## [0.41.34](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.33...v0.41.34) (2021-02-22)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @carbon/charts
|
|
9
31
|
|
|
32
|
+
# Change Log
|
|
10
33
|
|
|
34
|
+
All notable changes to this project will be documented in this file. See
|
|
35
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
11
36
|
|
|
37
|
+
## [0.41.33](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.32...v0.41.33) (2021-02-18)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @carbon/charts
|
|
12
40
|
|
|
41
|
+
# Change Log
|
|
42
|
+
|
|
43
|
+
All notable changes to this project will be documented in this file. See
|
|
44
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
45
|
+
|
|
46
|
+
## [0.41.32](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.31...v0.41.32) (2021-02-12)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @carbon/charts
|
|
13
49
|
|
|
14
50
|
# Change Log
|
|
15
51
|
|
package/axis-chart.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare class AxisChart extends Chart {
|
|
|
6
6
|
services: any;
|
|
7
7
|
model: ChartModelCartesian;
|
|
8
8
|
constructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>);
|
|
9
|
-
protected getAxisChartComponents(graphFrameComponents: any[]): (LayoutComponent | AxisChartsTooltip)[];
|
|
9
|
+
protected getAxisChartComponents(graphFrameComponents: any[], configs?: object): (LayoutComponent | AxisChartsTooltip)[];
|
|
10
10
|
}
|
package/axis-chart.js
CHANGED
|
@@ -36,7 +36,7 @@ var AxisChart = /** @class */ (function (_super) {
|
|
|
36
36
|
_this.model = new ChartModelCartesian(_this.services);
|
|
37
37
|
return _this;
|
|
38
38
|
}
|
|
39
|
-
AxisChart.prototype.getAxisChartComponents = function (graphFrameComponents) {
|
|
39
|
+
AxisChart.prototype.getAxisChartComponents = function (graphFrameComponents, configs) {
|
|
40
40
|
var isZoomBarEnabled = Tools.getProperty(this.model.getOptions(), 'zoomBar', AxisPositions.TOP, 'enabled');
|
|
41
41
|
var toolbarEnabled = Tools.getProperty(this.model.getOptions(), 'toolbar', 'enabled');
|
|
42
42
|
this.services.cartesianScales.determineAxisDuality();
|
|
@@ -102,7 +102,8 @@ var AxisChart = /** @class */ (function (_super) {
|
|
|
102
102
|
y: LayoutGrowth.FIXED,
|
|
103
103
|
},
|
|
104
104
|
};
|
|
105
|
-
var isLegendEnabled =
|
|
105
|
+
var isLegendEnabled = Tools.getProperty(configs, 'legend', 'enabled') !== false &&
|
|
106
|
+
this.model.getOptions().legend.enabled !== false;
|
|
106
107
|
// Decide the position of the legend in reference to the chart
|
|
107
108
|
var fullFrameComponentDirection = LayoutDirection.COLUMN;
|
|
108
109
|
if (isLegendEnabled) {
|
package/axis-chart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axis-chart.js","sourceRoot":"","sources":["axis-chart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAGf,aAAa,EACb,UAAU,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,MAAM,EACN,KAAK,EACL,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,OAAO,GACP,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAE3D;IAA+B,6BAAK;IAQnC,mBAAY,MAAe,EAAE,YAA2C;QAAxE,YACC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAC3B;QATD,cAAQ,GAAQ,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC,QAAQ,EAAE;YAC5C,eAAe,EAAE,eAAe;YAChC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QACH,WAAK,GAAwB,IAAI,mBAAmB,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC;;IAIpE,CAAC;IAES,0CAAsB,GAAhC,UAAiC,oBAA2B;QAC3D,IAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CACzC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,EACvB,SAA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,MAAM,EAAE;oBACP,CAAC,EAAE,YAAY,CAAC,SAAS;oBACzB,CAAC,EAAE,YAAY,CAAC,KAAK;iBACrB;aACD,CAAC;YAEF,wBAAwB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;SACpD;QACD,IAAI,cAAc,EAAE;YACnB,wBAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAChD;QACD,wBAAwB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAElD,OAAO;YACN,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YAChD,IAAI,eAAe,CAClB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,wBAAwB,EACxB;gBACC,SAAS,EAAE,eAAe,CAAC,MAAM;aACjC,CACD;SACD,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AA/ND,CAA+B,KAAK,GA+NnC","sourcesContent":["import { Chart } from './chart';\nimport { ChartModelCartesian } from './model-cartesian-charts';\nimport {\n\tLayoutDirection,\n\tLayoutGrowth,\n\tLegendOrientations,\n\tLegendPositions,\n\tChartConfig,\n\tAxisChartOptions,\n\tAxisPositions,\n\tScaleTypes,\n} from './interfaces';\nimport {\n\tChartBrush,\n\tChartClip,\n\tLayoutComponent,\n\tLegend,\n\tTitle,\n\tAxisChartsTooltip,\n\tSpacer,\n\tToolbar,\n\tZoomBar,\n} from './components';\nimport { Tools } from './tools';\n\nimport { CartesianScales, Curves, Zoom } from './services';\n\nexport class AxisChart extends Chart {\n\tservices: any = Object.assign(this.services, {\n\t\tcartesianScales: CartesianScales,\n\t\tcurves: Curves,\n\t\tzoom: Zoom,\n\t});\n\tmodel: ChartModelCartesian = new ChartModelCartesian(this.services);\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\t}\n\n\tprotected getAxisChartComponents(graphFrameComponents: any[]) {\n\t\tconst isZoomBarEnabled = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'zoomBar',\n\t\t\tAxisPositions.TOP,\n\t\t\t'enabled'\n\t\t);\n\t\tconst toolbarEnabled = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'toolbar',\n\t\t\t'enabled'\n\t\t);\n\n\t\tthis.services.cartesianScales.determineAxisDuality();\n\t\tthis.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()\n\t\tthis.services.cartesianScales.determineOrientation();\n\n\t\tconst mainXAxisPosition = this.services.cartesianScales.getMainXAxisPosition();\n\t\tconst mainXScaleType = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'axes',\n\t\t\tmainXAxisPosition,\n\t\t\t'scaleType'\n\t\t);\n\t\t// @todo - Zoom Bar only supports main axis at BOTTOM axis and time scale for now\n\t\tconst zoomBarEnabled =\n\t\t\tisZoomBarEnabled &&\n\t\t\tmainXAxisPosition === AxisPositions.BOTTOM &&\n\t\t\tmainXScaleType === ScaleTypes.TIME;\n\n\t\t// @todo - should check if zoom bar in all axes are locked\n\t\tconst isZoomBarLocked = this.services.zoom.isZoomBarLocked(\n\t\t\tAxisPositions.TOP\n\t\t);\n\n\t\tconst titleAvailable = !!this.model.getOptions().title;\n\t\tconst titleComponent = {\n\t\t\tid: 'title',\n\t\t\tcomponents: [new Title(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst toolbarComponent = {\n\t\t\tid: 'toolbar',\n\t\t\tcomponents: [new Toolbar(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst headerComponent = {\n\t\t\tid: 'header',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t// always add title to keep layout correct\n\t\t\t\t\t\ttitleComponent,\n\t\t\t\t\t\t...(toolbarEnabled ? [toolbarComponent] : []),\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: LayoutDirection.ROW,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: 'legend',\n\t\t\tcomponents: [new Legend(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\t// if all zoom bars are locked, no need to add chart brush\n\t\tif (zoomBarEnabled && !isZoomBarLocked) {\n\t\t\tgraphFrameComponents.push(\n\t\t\t\tnew ChartClip(this.model, this.services),\n\t\t\t\tnew ChartBrush(this.model, this.services)\n\t\t\t);\n\t\t}\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: 'graph-frame',\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst isLegendEnabled =\n\t\t\tthis.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tlet fullFrameComponentDirection = LayoutDirection.COLUMN;\n\t\tif (isLegendEnabled) {\n\t\t\tconst legendPosition = Tools.getProperty(\n\t\t\t\tthis.model.getOptions(),\n\t\t\t\t'legend',\n\t\t\t\t'position'\n\t\t\t);\n\t\t\tif (legendPosition === LegendPositions.LEFT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.RIGHT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW_REVERSE;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.BOTTOM) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\t\t\t}\n\t\t}\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: 'spacer',\n\t\t\tcomponents: [new Spacer(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: 'full-frame',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [legendComponent] : []),\n\t\t\t\t\t\t...(isLegendEnabled ? [legendSpacerComponent] : []),\n\t\t\t\t\t\tgraphFrameComponent,\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst zoomBarComponent = {\n\t\t\tid: 'zoom-bar',\n\t\t\tcomponents: [new ZoomBar(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst topLevelLayoutComponents = [];\n\t\t// header component is required for either title or toolbar\n\t\tif (titleAvailable || toolbarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(headerComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: 'spacer',\n\t\t\t\tcomponents: [\n\t\t\t\t\tnew Spacer(\n\t\t\t\t\t\tthis.model,\n\t\t\t\t\t\tthis.services,\n\t\t\t\t\t\ttoolbarEnabled ? { size: 15 } : undefined\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\tgrowth: {\n\t\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t\t},\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\tif (zoomBarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(zoomBarComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew AxisChartsTooltip(this.model, this.services),\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN,\n\t\t\t\t}\n\t\t\t),\n\t\t];\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"axis-chart.js","sourceRoot":"","sources":["axis-chart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACN,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAGf,aAAa,EACb,UAAU,GACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,MAAM,EACN,KAAK,EACL,iBAAiB,EAC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AE,eAAe,CAAC,MAAM;aACjC,CACD;SACD,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AAnOD,CAA+B,KAAK,GAmOnC","sourcesContent":["import { Chart } from './chart';\nimport { ChartModelCartesian } from './model-cartesian-charts';\nimport {\n\tLayoutDirection,\n\tLayoutGrowth,\n\tLegendOrientations,\n\tLegendPositions,\n\tChartConfig,\n\tAxisChartOptions,\n\tAxisPositions,\n\tScaleTypes,\n} from './interfaces';\nimport {\n\tChartBrush,\n\tChartClip,\n\tLayoutComponent,\n\tLegend,\n\tTitle,\n\tAxisChartsTooltip,\n\tSpacer,\n\tToolbar,\n\tZoomBar,\n} from './components';\nimport { Tools } from './tools';\n\nimport { CartesianScales, Curves, Zoom } from './services';\n\nexport class AxisChart extends Chart {\n\tservices: any = Object.assign(this.services, {\n\t\tcartesianScales: CartesianScales,\n\t\tcurves: Curves,\n\t\tzoom: Zoom,\n\t});\n\tmodel: ChartModelCartesian = new ChartModelCartesian(this.services);\n\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\t}\n\n\tprotected getAxisChartComponents(\n\t\tgraphFrameComponents: any[],\n\t\tconfigs?: object\n\t) {\n\t\tconst isZoomBarEnabled = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'zoomBar',\n\t\t\tAxisPositions.TOP,\n\t\t\t'enabled'\n\t\t);\n\t\tconst toolbarEnabled = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'toolbar',\n\t\t\t'enabled'\n\t\t);\n\n\t\tthis.services.cartesianScales.determineAxisDuality();\n\t\tthis.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()\n\t\tthis.services.cartesianScales.determineOrientation();\n\n\t\tconst mainXAxisPosition = this.services.cartesianScales.getMainXAxisPosition();\n\t\tconst mainXScaleType = Tools.getProperty(\n\t\t\tthis.model.getOptions(),\n\t\t\t'axes',\n\t\t\tmainXAxisPosition,\n\t\t\t'scaleType'\n\t\t);\n\t\t// @todo - Zoom Bar only supports main axis at BOTTOM axis and time scale for now\n\t\tconst zoomBarEnabled =\n\t\t\tisZoomBarEnabled &&\n\t\t\tmainXAxisPosition === AxisPositions.BOTTOM &&\n\t\t\tmainXScaleType === ScaleTypes.TIME;\n\n\t\t// @todo - should check if zoom bar in all axes are locked\n\t\tconst isZoomBarLocked = this.services.zoom.isZoomBarLocked(\n\t\t\tAxisPositions.TOP\n\t\t);\n\n\t\tconst titleAvailable = !!this.model.getOptions().title;\n\t\tconst titleComponent = {\n\t\t\tid: 'title',\n\t\t\tcomponents: [new Title(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst toolbarComponent = {\n\t\t\tid: 'toolbar',\n\t\t\tcomponents: [new Toolbar(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst headerComponent = {\n\t\t\tid: 'header',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t// always add title to keep layout correct\n\t\t\t\t\t\ttitleComponent,\n\t\t\t\t\t\t...(toolbarEnabled ? [toolbarComponent] : []),\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: LayoutDirection.ROW,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst legendComponent = {\n\t\t\tid: 'legend',\n\t\t\tcomponents: [new Legend(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\t// if all zoom bars are locked, no need to add chart brush\n\t\tif (zoomBarEnabled && !isZoomBarLocked) {\n\t\t\tgraphFrameComponents.push(\n\t\t\t\tnew ChartClip(this.model, this.services),\n\t\t\t\tnew ChartBrush(this.model, this.services)\n\t\t\t);\n\t\t}\n\n\t\tconst graphFrameComponent = {\n\t\t\tid: 'graph-frame',\n\t\t\tcomponents: graphFrameComponents,\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst isLegendEnabled =\n\t\t\tTools.getProperty(configs, 'legend', 'enabled') !== false &&\n\t\t\tthis.model.getOptions().legend.enabled !== false;\n\n\t\t// Decide the position of the legend in reference to the chart\n\t\tlet fullFrameComponentDirection = LayoutDirection.COLUMN;\n\t\tif (isLegendEnabled) {\n\t\t\tconst legendPosition = Tools.getProperty(\n\t\t\t\tthis.model.getOptions(),\n\t\t\t\t'legend',\n\t\t\t\t'position'\n\t\t\t);\n\t\t\tif (legendPosition === LegendPositions.LEFT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.RIGHT) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.ROW_REVERSE;\n\n\t\t\t\tif (!this.model.getOptions().legend.orientation) {\n\t\t\t\t\tthis.model.getOptions().legend.orientation =\n\t\t\t\t\t\tLegendOrientations.VERTICAL;\n\t\t\t\t}\n\t\t\t} else if (legendPosition === LegendPositions.BOTTOM) {\n\t\t\t\tfullFrameComponentDirection = LayoutDirection.COLUMN_REVERSE;\n\t\t\t}\n\t\t}\n\n\t\tconst legendSpacerComponent = {\n\t\t\tid: 'spacer',\n\t\t\tcomponents: [new Spacer(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst fullFrameComponent = {\n\t\t\tid: 'full-frame',\n\t\t\tcomponents: [\n\t\t\t\tnew LayoutComponent(\n\t\t\t\t\tthis.model,\n\t\t\t\t\tthis.services,\n\t\t\t\t\t[\n\t\t\t\t\t\t...(isLegendEnabled ? [legendComponent] : []),\n\t\t\t\t\t\t...(isLegendEnabled ? [legendSpacerComponent] : []),\n\t\t\t\t\t\tgraphFrameComponent,\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tdirection: fullFrameComponentDirection,\n\t\t\t\t\t}\n\t\t\t\t),\n\t\t\t],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.STRETCH,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst zoomBarComponent = {\n\t\t\tid: 'zoom-bar',\n\t\t\tcomponents: [new ZoomBar(this.model, this.services)],\n\t\t\tgrowth: {\n\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t},\n\t\t};\n\n\t\tconst topLevelLayoutComponents = [];\n\t\t// header component is required for either title or toolbar\n\t\tif (titleAvailable || toolbarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(headerComponent);\n\n\t\t\tconst titleSpacerComponent = {\n\t\t\t\tid: 'spacer',\n\t\t\t\tcomponents: [\n\t\t\t\t\tnew Spacer(\n\t\t\t\t\t\tthis.model,\n\t\t\t\t\t\tthis.services,\n\t\t\t\t\t\ttoolbarEnabled ? { size: 15 } : undefined\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\tgrowth: {\n\t\t\t\t\tx: LayoutGrowth.PREFERRED,\n\t\t\t\t\ty: LayoutGrowth.FIXED,\n\t\t\t\t},\n\t\t\t};\n\n\t\t\ttopLevelLayoutComponents.push(titleSpacerComponent);\n\t\t}\n\t\tif (zoomBarEnabled) {\n\t\t\ttopLevelLayoutComponents.push(zoomBarComponent);\n\t\t}\n\t\ttopLevelLayoutComponents.push(fullFrameComponent);\n\n\t\treturn [\n\t\t\tnew AxisChartsTooltip(this.model, this.services),\n\t\t\tnew LayoutComponent(\n\t\t\t\tthis.model,\n\t\t\t\tthis.services,\n\t\t\t\ttopLevelLayoutComponents,\n\t\t\t\t{\n\t\t\t\t\tdirection: LayoutDirection.COLUMN,\n\t\t\t\t}\n\t\t\t),\n\t\t];\n\t}\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const simpleBoxplotData: {
|
|
2
|
+
group: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const simpleBoxplotOptions: {
|
|
7
|
+
title: string;
|
|
8
|
+
axes: {
|
|
9
|
+
bottom: {
|
|
10
|
+
mapsTo: string;
|
|
11
|
+
};
|
|
12
|
+
left: {
|
|
13
|
+
scaleType: string;
|
|
14
|
+
mapsTo: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const simpleVerticalBoxplotData: {
|
|
19
|
+
group: string;
|
|
20
|
+
key: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
23
|
+
export declare const simpleVerticalBoxplotOptions: {
|
|
24
|
+
title: string;
|
|
25
|
+
axes: {
|
|
26
|
+
left: {
|
|
27
|
+
mapsTo: string;
|
|
28
|
+
};
|
|
29
|
+
bottom: {
|
|
30
|
+
scaleType: string;
|
|
31
|
+
mapsTo: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -346,24 +346,26 @@ export declare const comboLoadingOptions: {
|
|
|
346
346
|
correspondingDatasets: string[];
|
|
347
347
|
}[];
|
|
348
348
|
};
|
|
349
|
-
export declare const
|
|
350
|
-
group: string;
|
|
351
|
-
key: string;
|
|
352
|
-
temp: number;
|
|
353
|
-
value?: undefined;
|
|
354
|
-
} | {
|
|
349
|
+
export declare const comboStackedAreaLine: ({
|
|
355
350
|
group: string;
|
|
356
|
-
|
|
351
|
+
date: Date;
|
|
357
352
|
value: number;
|
|
358
353
|
temp?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
group: string;
|
|
356
|
+
date: Date;
|
|
357
|
+
temp: number;
|
|
358
|
+
value?: undefined;
|
|
359
359
|
})[];
|
|
360
|
-
export declare const
|
|
360
|
+
export declare const comboStackedAreaLineOptions: {
|
|
361
361
|
experimental: boolean;
|
|
362
362
|
title: string;
|
|
363
363
|
axes: {
|
|
364
364
|
left: {
|
|
365
|
-
mapsTo: string;
|
|
366
365
|
title: string;
|
|
366
|
+
stacked: boolean;
|
|
367
|
+
mapsTo: string;
|
|
368
|
+
titleOrientation: string;
|
|
367
369
|
};
|
|
368
370
|
bottom: {
|
|
369
371
|
scaleType: string;
|
|
@@ -371,29 +373,47 @@ export declare const comboErrorOptions: {
|
|
|
371
373
|
};
|
|
372
374
|
right: {
|
|
373
375
|
title: string;
|
|
374
|
-
mapsTo: string;
|
|
375
376
|
scaleType: string;
|
|
377
|
+
mapsTo: string;
|
|
376
378
|
correspondingDatasets: string[];
|
|
379
|
+
titleOrientation: string;
|
|
377
380
|
};
|
|
378
381
|
};
|
|
382
|
+
curve: string;
|
|
383
|
+
comboChartTypes: ({
|
|
384
|
+
type: string;
|
|
385
|
+
options: {
|
|
386
|
+
points: {
|
|
387
|
+
enabled: boolean;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
correspondingDatasets: string[];
|
|
391
|
+
} | {
|
|
392
|
+
type: string;
|
|
393
|
+
correspondingDatasets: string[];
|
|
394
|
+
options?: undefined;
|
|
395
|
+
})[];
|
|
379
396
|
};
|
|
380
|
-
export declare const
|
|
397
|
+
export declare const comboAreaLineTimeSeriesData: ({
|
|
381
398
|
group: string;
|
|
382
|
-
|
|
399
|
+
key: Date;
|
|
383
400
|
value: number;
|
|
384
401
|
temp?: undefined;
|
|
385
402
|
} | {
|
|
386
403
|
group: string;
|
|
387
|
-
|
|
404
|
+
key: Date;
|
|
388
405
|
temp: number;
|
|
389
406
|
value?: undefined;
|
|
390
407
|
})[];
|
|
391
|
-
export declare const
|
|
408
|
+
export declare const comboAreaLineTimeSeriesOptions: {
|
|
392
409
|
experimental: boolean;
|
|
393
410
|
title: string;
|
|
411
|
+
points: {
|
|
412
|
+
enabled: boolean;
|
|
413
|
+
};
|
|
394
414
|
axes: {
|
|
395
415
|
left: {
|
|
396
|
-
|
|
416
|
+
title: string;
|
|
397
417
|
mapsTo: string;
|
|
398
418
|
};
|
|
399
419
|
bottom: {
|
|
@@ -401,23 +421,25 @@ export declare const comboStackedAreaLineOptions: {
|
|
|
401
421
|
mapsTo: string;
|
|
402
422
|
};
|
|
403
423
|
right: {
|
|
404
|
-
|
|
424
|
+
title: string;
|
|
405
425
|
mapsTo: string;
|
|
406
426
|
correspondingDatasets: string[];
|
|
407
427
|
};
|
|
408
428
|
};
|
|
409
|
-
curve: string;
|
|
410
429
|
comboChartTypes: ({
|
|
411
430
|
type: string;
|
|
412
431
|
options: {
|
|
413
|
-
points
|
|
414
|
-
enabled: boolean;
|
|
415
|
-
};
|
|
432
|
+
points?: undefined;
|
|
416
433
|
};
|
|
417
434
|
correspondingDatasets: string[];
|
|
418
435
|
} | {
|
|
419
436
|
type: string;
|
|
437
|
+
options: {
|
|
438
|
+
points: {
|
|
439
|
+
enabled: boolean;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
420
442
|
correspondingDatasets: string[];
|
|
421
|
-
options?: undefined;
|
|
422
443
|
})[];
|
|
444
|
+
curve: string;
|
|
423
445
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './area';
|
|
2
2
|
export * from './bar';
|
|
3
|
+
export * from './boxplot';
|
|
3
4
|
export * from './bubble';
|
|
4
5
|
export * from './donut';
|
|
5
6
|
export * from './line';
|
|
@@ -32,6 +33,11 @@ export declare const chartTypes: {
|
|
|
32
33
|
angular: string;
|
|
33
34
|
vue: string;
|
|
34
35
|
};
|
|
36
|
+
BoxplotChart: {
|
|
37
|
+
vanilla: string;
|
|
38
|
+
angular: string;
|
|
39
|
+
vue: string;
|
|
40
|
+
};
|
|
35
41
|
BubbleChart: {
|
|
36
42
|
vanilla: string;
|
|
37
43
|
angular: string;
|
|
@@ -6,5 +6,5 @@ export declare class AxisChart extends Chart {
|
|
|
6
6
|
services: any;
|
|
7
7
|
model: ChartModelCartesian;
|
|
8
8
|
constructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>);
|
|
9
|
-
protected getAxisChartComponents(graphFrameComponents: any[]): (AxisChartsTooltip | LayoutComponent)[];
|
|
9
|
+
protected getAxisChartComponents(graphFrameComponents: any[], configs?: object): (AxisChartsTooltip | LayoutComponent)[];
|
|
10
10
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxplotChartModel } from '../model-boxplot';
|
|
2
|
+
import { AxisChart } from '../axis-chart';
|
|
3
|
+
import { BoxplotChartOptions, ChartConfig } from '../interfaces/index';
|
|
4
|
+
export declare class BoxplotChart extends AxisChart {
|
|
5
|
+
model: BoxplotChartModel;
|
|
6
|
+
constructor(holder: Element, chartConfigs: ChartConfig<BoxplotChartOptions>);
|
|
7
|
+
getComponents(): any[];
|
|
8
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from './graphs/area-stacked';
|
|
|
10
10
|
export * from './graphs/bar-simple';
|
|
11
11
|
export * from './graphs/bar-grouped';
|
|
12
12
|
export * from './graphs/bar-stacked';
|
|
13
|
+
export * from './graphs/boxplot';
|
|
13
14
|
export * from './graphs/bubble';
|
|
14
15
|
export * from './graphs/line';
|
|
15
16
|
export * from './graphs/lollipop';
|
|
@@ -24,6 +24,25 @@ export declare const axis: {
|
|
|
24
24
|
};
|
|
25
25
|
paddingRatio: number;
|
|
26
26
|
};
|
|
27
|
+
export declare const boxplot: {
|
|
28
|
+
circle: {
|
|
29
|
+
radius: number;
|
|
30
|
+
opacity: {
|
|
31
|
+
hovered: number;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
box: {
|
|
36
|
+
opacity: {
|
|
37
|
+
hovered: number;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
strokeWidth: {
|
|
42
|
+
default: number;
|
|
43
|
+
thicker: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
27
46
|
export declare const legend: {
|
|
28
47
|
items: {
|
|
29
48
|
status: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from './interfaces';
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, BoxplotChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from './interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Grid options
|
|
4
4
|
*/
|
|
@@ -18,6 +18,7 @@ export declare const options: {
|
|
|
18
18
|
simpleBarChart: BarChartOptions;
|
|
19
19
|
groupedBarChart: BarChartOptions;
|
|
20
20
|
stackedBarChart: StackedBarChartOptions;
|
|
21
|
+
boxplotChart: BoxplotChartOptions;
|
|
21
22
|
bubbleChart: BubbleChartOptions;
|
|
22
23
|
lineChart: LineChartOptions;
|
|
23
24
|
areaChart: AreaChartOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScaleTypes, TickRotations } from './enums';
|
|
1
|
+
import { ScaleTypes, TickRotations, AxisTitleOrientations } from './enums';
|
|
2
2
|
import { AxisDomain } from 'd3';
|
|
3
3
|
import { Locale } from 'date-fns';
|
|
4
4
|
import { ThresholdOptions } from './components';
|
|
@@ -42,6 +42,11 @@ export interface AxisOptions {
|
|
|
42
42
|
* optional title for the scales
|
|
43
43
|
*/
|
|
44
44
|
title?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Override for the orientation of the title (for vertical axes).
|
|
47
|
+
* The title string can be overrided to be rotated left or right.
|
|
48
|
+
*/
|
|
49
|
+
titleOrientation?: AxisTitleOrientations;
|
|
45
50
|
/**
|
|
46
51
|
* thresholds
|
|
47
52
|
* Example:
|
|
@@ -78,7 +78,7 @@ export interface BaseChartOptions {
|
|
|
78
78
|
*/
|
|
79
79
|
color?: {
|
|
80
80
|
/**
|
|
81
|
-
* e.g. {
|
|
81
|
+
* e.g. { 'Dataset 1': 'blue' }
|
|
82
82
|
*/
|
|
83
83
|
scale?: object;
|
|
84
84
|
/**
|
|
@@ -110,6 +110,11 @@ export interface AxisChartOptions extends BaseChartOptions {
|
|
|
110
110
|
*/
|
|
111
111
|
zoomBar?: ZoomBarsOptions;
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* options specific to boxplot charts
|
|
115
|
+
*/
|
|
116
|
+
export interface BoxplotChartOptions extends AxisChartOptions {
|
|
117
|
+
}
|
|
113
118
|
/**
|
|
114
119
|
* options specific to bar charts
|
|
115
120
|
*/
|
|
@@ -218,6 +223,7 @@ export interface PieChartOptions extends BaseChartOptions {
|
|
|
218
223
|
pie?: {
|
|
219
224
|
labels?: {
|
|
220
225
|
formatter?: Function;
|
|
226
|
+
enabled?: Boolean;
|
|
221
227
|
};
|
|
222
228
|
alignment?: Alignments;
|
|
223
229
|
};
|
|
@@ -181,3 +181,10 @@ export declare enum ToolbarControlTypes {
|
|
|
181
181
|
ZOOM_OUT = "Zoom out",
|
|
182
182
|
RESET_ZOOM = "Reset zoom"
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* enum of title orientations for _vertical axes_
|
|
186
|
+
*/
|
|
187
|
+
export declare enum AxisTitleOrientations {
|
|
188
|
+
LEFT = "left",
|
|
189
|
+
RIGHT = "right"
|
|
190
|
+
}
|
|
@@ -80,6 +80,19 @@ export declare enum Bar {
|
|
|
80
80
|
BAR_CLICK = "bar-click",
|
|
81
81
|
BAR_MOUSEOUT = "bar-mouseout"
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* enum of all boxplot graph events
|
|
85
|
+
*/
|
|
86
|
+
export declare enum Boxplot {
|
|
87
|
+
BOX_MOUSEOVER = "box-mouseover",
|
|
88
|
+
BOX_MOUSEMOVE = "box-mousemove",
|
|
89
|
+
BOX_CLICK = "box-click",
|
|
90
|
+
BOX_MOUSEOUT = "box-mouseout",
|
|
91
|
+
OUTLIER_MOUSEOVER = "outlier-mouseover",
|
|
92
|
+
OUTLIER_MOUSEMOVE = "outlier-mousemove",
|
|
93
|
+
OUTLIER_CLICK = "outlier-click",
|
|
94
|
+
OUTLIER_MOUSEOUT = "outlier-mouseout"
|
|
95
|
+
}
|
|
83
96
|
/**
|
|
84
97
|
* enum of all scatter graph events
|
|
85
98
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChartModelCartesian } from './model-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
|
+
}
|
package/build/src/model.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimeScaleOptions } from '../interfaces/axis-scales';
|
|
2
2
|
export declare const TIME_INTERVALS: (string | number)[][];
|
|
3
|
-
export declare function isTickPrimary(tick: number, i: number, interval: string, showDayName: boolean): boolean;
|
|
4
|
-
export declare function formatTick(tick: number, i: number, interval: string, timeScaleOptions: TimeScaleOptions): string;
|
|
3
|
+
export declare function isTickPrimary(tick: number, i: number, allTicks: Array<number>, interval: string, showDayName: boolean): boolean;
|
|
4
|
+
export declare function formatTick(tick: number, i: number, allTicks: Array<number>, interval: string, timeScaleOptions: TimeScaleOptions): string;
|
|
5
5
|
export declare function getTimeformats(timestamp: number): {
|
|
6
6
|
M: number;
|
|
7
7
|
d: number;
|