@carbon/charts 0.41.4 → 0.41.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 +8 -0
- package/axis-chart.js +2 -0
- package/axis-chart.js.map +1 -1
- package/build/demo/data/area.d.ts +25 -0
- package/build/demo/data/bubble.d.ts +24 -0
- package/build/demo/data/combo.d.ts +422 -0
- package/build/demo/data/index.d.ts +6 -0
- package/build/demo/data/line.d.ts +31 -0
- package/build/demo/data/scatter.d.ts +31 -0
- package/build/src/axis-chart.d.ts +1 -1
- package/build/src/chart.d.ts +1 -1
- package/build/src/charts/bar-stacked.d.ts +2 -2
- package/build/src/charts/combo.d.ts +7 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/components/axes/{ruler-stacked-bar.d.ts → ruler-stacked.d.ts} +1 -1
- package/build/src/components/axes/zoom-bar.d.ts +1 -1
- package/build/src/components/component.d.ts +7 -0
- package/build/src/components/graphs/scatter.d.ts +0 -1
- package/build/src/components/index.d.ts +2 -1
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +11 -2
- package/build/src/interfaces/enums.d.ts +12 -0
- package/build/src/model.d.ts +17 -10
- package/build/src/services/scales-cartesian.d.ts +27 -9
- package/build/src/tools.d.ts +2 -0
- package/bundle.js +1 -1
- package/charts/area-stacked.js +2 -2
- package/charts/area-stacked.js.map +1 -1
- package/charts/bar-stacked.d.ts +2 -2
- package/charts/bar-stacked.js +2 -2
- package/charts/bar-stacked.js.map +1 -1
- package/charts/combo.d.ts +7 -0
- package/charts/combo.js +111 -0
- package/charts/combo.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 +7 -8
- package/components/axes/axis.js.map +1 -1
- package/components/axes/grid.js +8 -9
- package/components/axes/grid.js.map +1 -1
- package/components/axes/{ruler-stacked-bar.d.ts → ruler-stacked.d.ts} +1 -1
- package/components/axes/{ruler-stacked-bar.js → ruler-stacked.js} +8 -8
- package/components/axes/ruler-stacked.js.map +1 -0
- package/components/axes/ruler.js +5 -5
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/toolbar.js +4 -4
- package/components/axes/toolbar.js.map +1 -1
- package/components/axes/two-dimensional-axes.js +2 -2
- package/components/axes/two-dimensional-axes.js.map +1 -1
- package/components/axes/zero-line.js +12 -8
- package/components/axes/zero-line.js.map +1 -1
- package/components/axes/zoom-bar.d.ts +1 -1
- package/components/axes/zoom-bar.js +7 -7
- package/components/axes/zoom-bar.js.map +1 -1
- package/components/component.d.ts +7 -0
- package/components/component.js +24 -3
- package/components/component.js.map +1 -1
- package/components/essentials/legend.js +4 -4
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/threshold.js +4 -4
- package/components/essentials/threshold.js.map +1 -1
- package/components/essentials/title-meter.js +3 -3
- package/components/essentials/title-meter.js.map +1 -1
- package/components/essentials/title.js +1 -1
- package/components/essentials/title.js.map +1 -1
- package/components/essentials/tooltip-axis.js +10 -8
- package/components/essentials/tooltip-axis.js.map +1 -1
- package/components/essentials/tooltip.js +5 -5
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area-stacked.js +11 -13
- package/components/graphs/area-stacked.js.map +1 -1
- package/components/graphs/area.js +15 -12
- package/components/graphs/area.js.map +1 -1
- package/components/graphs/bar-grouped.js +29 -23
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-simple.js +4 -3
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/bar-stacked.js +10 -8
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/bar.js +1 -1
- package/components/graphs/bar.js.map +1 -1
- package/components/graphs/bubble.js +4 -3
- package/components/graphs/bubble.js.map +1 -1
- package/components/graphs/donut.js +2 -2
- package/components/graphs/donut.js.map +1 -1
- package/components/graphs/gauge.js +7 -7
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/line.js +24 -21
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/meter.js +1 -1
- package/components/graphs/meter.js.map +1 -1
- package/components/graphs/pie.js +3 -3
- package/components/graphs/pie.js.map +1 -1
- package/components/graphs/radar.js +5 -5
- package/components/graphs/radar.js.map +1 -1
- package/components/graphs/scatter-stacked.js +14 -11
- package/components/graphs/scatter-stacked.js.map +1 -1
- package/components/graphs/scatter.d.ts +0 -1
- package/components/graphs/scatter.js +27 -32
- package/components/graphs/scatter.js.map +1 -1
- package/components/graphs/skeleton-lines.js +5 -5
- package/components/graphs/skeleton-lines.js.map +1 -1
- package/components/graphs/skeleton.js +4 -4
- package/components/graphs/skeleton.js.map +1 -1
- package/components/index.d.ts +2 -1
- package/components/index.js +2 -1
- package/components/index.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +6 -2
- package/configuration.js.map +1 -1
- package/demo/data/area.d.ts +25 -0
- package/demo/data/area.js +41 -4
- package/demo/data/area.js.map +1 -1
- package/demo/data/bubble.d.ts +24 -0
- package/demo/data/bubble.js +39 -0
- package/demo/data/bubble.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/combo.d.ts +422 -0
- package/demo/data/combo.js +545 -0
- package/demo/data/combo.js.map +1 -0
- package/demo/data/index.d.ts +6 -0
- package/demo/data/index.js +102 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +31 -0
- package/demo/data/line.js +38 -0
- package/demo/data/line.js.map +1 -1
- package/demo/data/scatter.d.ts +31 -0
- package/demo/data/scatter.js +33 -0
- package/demo/data/scatter.js.map +1 -1
- package/demo/data/zoom-bar.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +35 -21
- package/interfaces/charts.d.ts +11 -2
- package/interfaces/charts.js +1 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/enums.d.ts +12 -0
- package/interfaces/enums.js +13 -0
- package/interfaces/enums.js.map +1 -1
- package/model.d.ts +17 -10
- package/model.js +60 -31
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/services/essentials/dom-utils.js +19 -3
- package/services/essentials/dom-utils.js.map +1 -1
- package/services/scales-cartesian.d.ts +27 -9
- package/services/scales-cartesian.js +130 -52
- package/services/scales-cartesian.js.map +1 -1
- package/tools.d.ts +2 -0
- package/tools.js +4 -2
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +125 -100
- package/components/axes/ruler-stacked-bar.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.4...v0.41.5) (2020-11-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.41.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.3...v0.41.4) (2020-11-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @carbon/charts
|
package/axis-chart.js
CHANGED
|
@@ -39,7 +39,9 @@ var AxisChart = /** @class */ (function (_super) {
|
|
|
39
39
|
AxisChart.prototype.getAxisChartComponents = function (graphFrameComponents) {
|
|
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
|
+
this.services.cartesianScales.determineAxisDuality();
|
|
42
43
|
this.services.cartesianScales.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()
|
|
44
|
+
this.services.cartesianScales.determineOrientation();
|
|
43
45
|
var mainXAxisPosition = this.services.cartesianScales.getMainXAxisPosition();
|
|
44
46
|
var mainXScaleType = Tools.getProperty(this.model.getOptions(), "axes", mainXAxisPosition, "scaleType");
|
|
45
47
|
// @todo - Zoom Bar only supports main axis at BOTTOM axis and time scale for now
|
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,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,MAAM,EACN,KAAK,EACL,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,OAAO,EACP,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,SAAS,EACT,aAAa,CAAC,GAAG,EACjB,SAAS,CACT,CAAC;QACF,IAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CACvC,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AgB,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,AA5ND,CAA+B,KAAK,GA4NnC","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.findDomainAndRangeAxes(); // need to do this before getMainXAxisPosition()\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,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,MAAM,EACN,KAAK,EACL,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,OAAO,EACP,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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AAK;aACrB;SACD,CAAC;QAEF,IAAM,wBAAwB,GAAG,EAAE,CAAC;QACpC,2DAA2D;QAC3D,IAAI,cAAc,IAAI,cAAc,EAAE;YACrC,wBAAwB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAE/C,IAAM,oBAAoB,GAAG;gBAC5B,EAAE,EAAE,QAAQ;gBACZ,UAAU,EAAE;oBACX,IAAI,MAAM,CACT,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACzC;iBACD;gBACD,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"]}
|
|
@@ -18,6 +18,26 @@ export declare const areaTimeSeriesOptions: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
export declare const areaDiscreteDomain: {
|
|
22
|
+
group: string;
|
|
23
|
+
value: number;
|
|
24
|
+
key: string;
|
|
25
|
+
}[];
|
|
26
|
+
export declare const areaDiscreteDomainOptions: {
|
|
27
|
+
title: string;
|
|
28
|
+
axes: {
|
|
29
|
+
bottom: {
|
|
30
|
+
title: string;
|
|
31
|
+
mapsTo: string;
|
|
32
|
+
scaleType: string;
|
|
33
|
+
};
|
|
34
|
+
left: {
|
|
35
|
+
mapsTo: string;
|
|
36
|
+
title: string;
|
|
37
|
+
scaleType: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
21
41
|
export declare const areaTimeSeriesCurvedData: {
|
|
22
42
|
group: string;
|
|
23
43
|
date: Date;
|
|
@@ -88,9 +108,12 @@ export declare const stackedAreaTimeSeriesOptions: {
|
|
|
88
108
|
axes: {
|
|
89
109
|
left: {
|
|
90
110
|
stacked: boolean;
|
|
111
|
+
scaleType: string;
|
|
112
|
+
mapsTo: string;
|
|
91
113
|
};
|
|
92
114
|
bottom: {
|
|
93
115
|
scaleType: string;
|
|
116
|
+
mapsTo: string;
|
|
94
117
|
};
|
|
95
118
|
};
|
|
96
119
|
curve: string;
|
|
@@ -108,6 +131,7 @@ export declare const stackedAreaTimeSeriesUnevenDataOptions: {
|
|
|
108
131
|
};
|
|
109
132
|
bottom: {
|
|
110
133
|
scaleType: string;
|
|
134
|
+
mapsTo: string;
|
|
111
135
|
};
|
|
112
136
|
};
|
|
113
137
|
curve: string;
|
|
@@ -124,6 +148,7 @@ export declare const stackedAreaPercentageTimeSeriesOptions: {
|
|
|
124
148
|
};
|
|
125
149
|
bottom: {
|
|
126
150
|
scaleType: string;
|
|
151
|
+
mapsTo: string;
|
|
127
152
|
};
|
|
128
153
|
};
|
|
129
154
|
curve: string;
|
|
@@ -109,3 +109,27 @@ export declare const bubbleSkeletonOptions: {
|
|
|
109
109
|
loading: boolean;
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
+
export declare const bubbleDualDiscreteData: {
|
|
113
|
+
group: string;
|
|
114
|
+
product: string;
|
|
115
|
+
value: number;
|
|
116
|
+
problem: string;
|
|
117
|
+
}[];
|
|
118
|
+
export declare const bubbleDualDiscreteOptions: {
|
|
119
|
+
title: string;
|
|
120
|
+
axes: {
|
|
121
|
+
bottom: {
|
|
122
|
+
title: string;
|
|
123
|
+
scaleType: string;
|
|
124
|
+
mapsTo: string;
|
|
125
|
+
};
|
|
126
|
+
left: {
|
|
127
|
+
scaleType: string;
|
|
128
|
+
mapsTo: string;
|
|
129
|
+
title: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
bubble: {
|
|
133
|
+
radiusMapsTo: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
export declare const comboSimpleData: ({
|
|
2
|
+
group: string;
|
|
3
|
+
date: string;
|
|
4
|
+
value: number;
|
|
5
|
+
temp?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
group: string;
|
|
8
|
+
date: string;
|
|
9
|
+
temp: number;
|
|
10
|
+
value?: undefined;
|
|
11
|
+
})[];
|
|
12
|
+
export declare const comboSimpleOptions: {
|
|
13
|
+
experimental: boolean;
|
|
14
|
+
title: string;
|
|
15
|
+
axes: {
|
|
16
|
+
left: {
|
|
17
|
+
mapsTo: string;
|
|
18
|
+
scaleType: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
right: {
|
|
22
|
+
mapsTo: string;
|
|
23
|
+
scaleType: string;
|
|
24
|
+
title: string;
|
|
25
|
+
correspondingDatasets: string[];
|
|
26
|
+
};
|
|
27
|
+
bottom: {
|
|
28
|
+
title: string;
|
|
29
|
+
mapsTo: string;
|
|
30
|
+
scaleType: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
comboChartTypes: ({
|
|
34
|
+
type: string;
|
|
35
|
+
correspondingDatasets: string[];
|
|
36
|
+
options?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
type: string;
|
|
39
|
+
options: {
|
|
40
|
+
points: {
|
|
41
|
+
radius: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
correspondingDatasets: string[];
|
|
45
|
+
})[];
|
|
46
|
+
};
|
|
47
|
+
export declare const comboHorizontalData: ({
|
|
48
|
+
group: string;
|
|
49
|
+
date: string;
|
|
50
|
+
value: number;
|
|
51
|
+
temp?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
group: string;
|
|
54
|
+
date: string;
|
|
55
|
+
temp: number;
|
|
56
|
+
value?: undefined;
|
|
57
|
+
})[];
|
|
58
|
+
export declare const comboHorizontalOptions: {
|
|
59
|
+
experimental: boolean;
|
|
60
|
+
title: string;
|
|
61
|
+
axes: {
|
|
62
|
+
top: {
|
|
63
|
+
mapsTo: string;
|
|
64
|
+
scaleType: string;
|
|
65
|
+
title: string;
|
|
66
|
+
};
|
|
67
|
+
bottom: {
|
|
68
|
+
mapsTo: string;
|
|
69
|
+
scaleType: string;
|
|
70
|
+
title: string;
|
|
71
|
+
correspondingDatasets: string[];
|
|
72
|
+
};
|
|
73
|
+
left: {
|
|
74
|
+
title: string;
|
|
75
|
+
mapsTo: string;
|
|
76
|
+
scaleType: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
comboChartTypes: {
|
|
80
|
+
type: string;
|
|
81
|
+
options: {};
|
|
82
|
+
correspondingDatasets: string[];
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
export declare const comboStackedData: ({
|
|
86
|
+
group: string;
|
|
87
|
+
key: string;
|
|
88
|
+
value: number;
|
|
89
|
+
temp?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
group: string;
|
|
92
|
+
key: string;
|
|
93
|
+
temp: number;
|
|
94
|
+
value?: undefined;
|
|
95
|
+
})[];
|
|
96
|
+
export declare const comboStackedOptions: {
|
|
97
|
+
experimental: boolean;
|
|
98
|
+
title: string;
|
|
99
|
+
axes: {
|
|
100
|
+
left: {
|
|
101
|
+
title: string;
|
|
102
|
+
mapsTo: string;
|
|
103
|
+
};
|
|
104
|
+
bottom: {
|
|
105
|
+
title: string;
|
|
106
|
+
mapsTo: string;
|
|
107
|
+
scaleType: string;
|
|
108
|
+
};
|
|
109
|
+
right: {
|
|
110
|
+
title: string;
|
|
111
|
+
mapsTo: string;
|
|
112
|
+
correspondingDatasets: string[];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
comboChartTypes: {
|
|
116
|
+
type: string;
|
|
117
|
+
options: {};
|
|
118
|
+
correspondingDatasets: string[];
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
export declare const comboGroupedData: ({
|
|
122
|
+
group: string;
|
|
123
|
+
key: string;
|
|
124
|
+
value: number;
|
|
125
|
+
temp?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
group: string;
|
|
128
|
+
key: string;
|
|
129
|
+
temp: number;
|
|
130
|
+
value?: undefined;
|
|
131
|
+
})[];
|
|
132
|
+
export declare const comboGroupedOptions: {
|
|
133
|
+
experimental: boolean;
|
|
134
|
+
title: string;
|
|
135
|
+
axes: {
|
|
136
|
+
left: {
|
|
137
|
+
title: string;
|
|
138
|
+
mapsTo: string;
|
|
139
|
+
};
|
|
140
|
+
bottom: {
|
|
141
|
+
scaleType: string;
|
|
142
|
+
mapsTo: string;
|
|
143
|
+
};
|
|
144
|
+
right: {
|
|
145
|
+
title: string;
|
|
146
|
+
mapsTo: string;
|
|
147
|
+
correspondingDatasets: string[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
comboChartTypes: ({
|
|
151
|
+
type: string;
|
|
152
|
+
correspondingDatasets: string[];
|
|
153
|
+
options?: undefined;
|
|
154
|
+
} | {
|
|
155
|
+
type: string;
|
|
156
|
+
options: {
|
|
157
|
+
points: {
|
|
158
|
+
filled: boolean;
|
|
159
|
+
opacity: number;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
correspondingDatasets: string[];
|
|
163
|
+
})[];
|
|
164
|
+
};
|
|
165
|
+
export declare const comboGroupedHorizontalData: ({
|
|
166
|
+
group: string;
|
|
167
|
+
key: string;
|
|
168
|
+
value: number;
|
|
169
|
+
temp?: undefined;
|
|
170
|
+
} | {
|
|
171
|
+
group: string;
|
|
172
|
+
key: string;
|
|
173
|
+
temp: number;
|
|
174
|
+
value?: undefined;
|
|
175
|
+
})[];
|
|
176
|
+
export declare const comboGroupedHorizontalOptions: {
|
|
177
|
+
experimental: boolean;
|
|
178
|
+
title: string;
|
|
179
|
+
axes: {
|
|
180
|
+
top: {
|
|
181
|
+
title: string;
|
|
182
|
+
mapsTo: string;
|
|
183
|
+
main: boolean;
|
|
184
|
+
};
|
|
185
|
+
left: {
|
|
186
|
+
scaleType: string;
|
|
187
|
+
mapsTo: string;
|
|
188
|
+
};
|
|
189
|
+
bottom: {
|
|
190
|
+
title: string;
|
|
191
|
+
mapsTo: string;
|
|
192
|
+
correspondingDatasets: string[];
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
comboChartTypes: {
|
|
196
|
+
type: string;
|
|
197
|
+
correspondingDatasets: string[];
|
|
198
|
+
}[];
|
|
199
|
+
};
|
|
200
|
+
export declare const comboAreaLineData: ({
|
|
201
|
+
group: string;
|
|
202
|
+
key: string;
|
|
203
|
+
value: number;
|
|
204
|
+
temp?: undefined;
|
|
205
|
+
} | {
|
|
206
|
+
group: string;
|
|
207
|
+
key: string;
|
|
208
|
+
temp: number;
|
|
209
|
+
value?: undefined;
|
|
210
|
+
})[];
|
|
211
|
+
export declare const comboAreaLineOptions: {
|
|
212
|
+
experimental: boolean;
|
|
213
|
+
title: string;
|
|
214
|
+
points: {
|
|
215
|
+
enabled: boolean;
|
|
216
|
+
};
|
|
217
|
+
axes: {
|
|
218
|
+
left: {
|
|
219
|
+
title: string;
|
|
220
|
+
mapsTo: string;
|
|
221
|
+
};
|
|
222
|
+
bottom: {
|
|
223
|
+
scaleType: string;
|
|
224
|
+
mapsTo: string;
|
|
225
|
+
};
|
|
226
|
+
right: {
|
|
227
|
+
title: string;
|
|
228
|
+
mapsTo: string;
|
|
229
|
+
correspondingDatasets: string[];
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
comboChartTypes: ({
|
|
233
|
+
type: string;
|
|
234
|
+
options: {
|
|
235
|
+
points?: undefined;
|
|
236
|
+
};
|
|
237
|
+
correspondingDatasets: string[];
|
|
238
|
+
} | {
|
|
239
|
+
type: string;
|
|
240
|
+
options: {
|
|
241
|
+
points: {
|
|
242
|
+
enabled: boolean;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
correspondingDatasets: string[];
|
|
246
|
+
})[];
|
|
247
|
+
curve: string;
|
|
248
|
+
};
|
|
249
|
+
export declare const comboLineScatterData: ({
|
|
250
|
+
group: string;
|
|
251
|
+
key: string;
|
|
252
|
+
temp: number;
|
|
253
|
+
value?: undefined;
|
|
254
|
+
} | {
|
|
255
|
+
group: string;
|
|
256
|
+
key: string;
|
|
257
|
+
value: number;
|
|
258
|
+
temp?: undefined;
|
|
259
|
+
})[];
|
|
260
|
+
export declare const comboLineScatterOptions: {
|
|
261
|
+
experimental: boolean;
|
|
262
|
+
title: string;
|
|
263
|
+
axes: {
|
|
264
|
+
left: {
|
|
265
|
+
mapsTo: string;
|
|
266
|
+
title: string;
|
|
267
|
+
};
|
|
268
|
+
bottom: {
|
|
269
|
+
scaleType: string;
|
|
270
|
+
mapsTo: string;
|
|
271
|
+
};
|
|
272
|
+
right: {
|
|
273
|
+
title: string;
|
|
274
|
+
mapsTo: string;
|
|
275
|
+
scaleType: string;
|
|
276
|
+
correspondingDatasets: string[];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
curve: string;
|
|
280
|
+
comboChartTypes: {
|
|
281
|
+
type: string;
|
|
282
|
+
correspondingDatasets: string[];
|
|
283
|
+
}[];
|
|
284
|
+
};
|
|
285
|
+
export declare const comboEmptyData: any[];
|
|
286
|
+
export declare const comboEmptyOptions: {
|
|
287
|
+
experimental: boolean;
|
|
288
|
+
title: string;
|
|
289
|
+
axes: {
|
|
290
|
+
left: {
|
|
291
|
+
mapsTo: string;
|
|
292
|
+
title: string;
|
|
293
|
+
};
|
|
294
|
+
bottom: {
|
|
295
|
+
scaleType: string;
|
|
296
|
+
mapsTo: string;
|
|
297
|
+
};
|
|
298
|
+
right: {
|
|
299
|
+
title: string;
|
|
300
|
+
mapsTo: string;
|
|
301
|
+
scaleType: string;
|
|
302
|
+
correspondingDatasets: string[];
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
comboChartTypes: {
|
|
306
|
+
type: string;
|
|
307
|
+
correspondingDatasets: string[];
|
|
308
|
+
}[];
|
|
309
|
+
};
|
|
310
|
+
export declare const comboLoadingData: ({
|
|
311
|
+
group: string;
|
|
312
|
+
key: string;
|
|
313
|
+
temp: number;
|
|
314
|
+
value?: undefined;
|
|
315
|
+
} | {
|
|
316
|
+
group: string;
|
|
317
|
+
key: string;
|
|
318
|
+
value: number;
|
|
319
|
+
temp?: undefined;
|
|
320
|
+
})[];
|
|
321
|
+
export declare const comboLoadingOptions: {
|
|
322
|
+
experimental: boolean;
|
|
323
|
+
title: string;
|
|
324
|
+
axes: {
|
|
325
|
+
left: {
|
|
326
|
+
mapsTo: string;
|
|
327
|
+
title: string;
|
|
328
|
+
};
|
|
329
|
+
bottom: {
|
|
330
|
+
scaleType: string;
|
|
331
|
+
mapsTo: string;
|
|
332
|
+
};
|
|
333
|
+
right: {
|
|
334
|
+
title: string;
|
|
335
|
+
mapsTo: string;
|
|
336
|
+
scaleType: string;
|
|
337
|
+
correspondingDatasets: string[];
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
data: {
|
|
341
|
+
loading: boolean;
|
|
342
|
+
};
|
|
343
|
+
comboChartTypes: {
|
|
344
|
+
type: string;
|
|
345
|
+
correspondingDatasets: string[];
|
|
346
|
+
}[];
|
|
347
|
+
};
|
|
348
|
+
export declare const comboErrorData: ({
|
|
349
|
+
group: string;
|
|
350
|
+
key: string;
|
|
351
|
+
temp: number;
|
|
352
|
+
value?: undefined;
|
|
353
|
+
} | {
|
|
354
|
+
group: string;
|
|
355
|
+
key: string;
|
|
356
|
+
value: number;
|
|
357
|
+
temp?: undefined;
|
|
358
|
+
})[];
|
|
359
|
+
export declare const comboErrorOptions: {
|
|
360
|
+
experimental: boolean;
|
|
361
|
+
title: string;
|
|
362
|
+
axes: {
|
|
363
|
+
left: {
|
|
364
|
+
mapsTo: string;
|
|
365
|
+
title: string;
|
|
366
|
+
};
|
|
367
|
+
bottom: {
|
|
368
|
+
scaleType: string;
|
|
369
|
+
mapsTo: string;
|
|
370
|
+
};
|
|
371
|
+
right: {
|
|
372
|
+
title: string;
|
|
373
|
+
mapsTo: string;
|
|
374
|
+
scaleType: string;
|
|
375
|
+
correspondingDatasets: string[];
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
export declare const comboStackedAreaLine: ({
|
|
380
|
+
group: string;
|
|
381
|
+
date: Date;
|
|
382
|
+
value: number;
|
|
383
|
+
temp?: undefined;
|
|
384
|
+
} | {
|
|
385
|
+
group: string;
|
|
386
|
+
date: Date;
|
|
387
|
+
temp: number;
|
|
388
|
+
value?: undefined;
|
|
389
|
+
})[];
|
|
390
|
+
export declare const comboStackedAreaLineOptions: {
|
|
391
|
+
experimental: boolean;
|
|
392
|
+
title: string;
|
|
393
|
+
axes: {
|
|
394
|
+
left: {
|
|
395
|
+
stacked: boolean;
|
|
396
|
+
mapsTo: string;
|
|
397
|
+
};
|
|
398
|
+
bottom: {
|
|
399
|
+
scaleType: string;
|
|
400
|
+
mapsTo: string;
|
|
401
|
+
};
|
|
402
|
+
right: {
|
|
403
|
+
scaleType: string;
|
|
404
|
+
mapsTo: string;
|
|
405
|
+
correspondingDatasets: string[];
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
curve: string;
|
|
409
|
+
comboChartTypes: ({
|
|
410
|
+
type: string;
|
|
411
|
+
options: {
|
|
412
|
+
points: {
|
|
413
|
+
enabled: boolean;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
correspondingDatasets: string[];
|
|
417
|
+
} | {
|
|
418
|
+
type: string;
|
|
419
|
+
correspondingDatasets: string[];
|
|
420
|
+
options?: undefined;
|
|
421
|
+
})[];
|
|
422
|
+
};
|
|
@@ -9,6 +9,7 @@ export * from "./gauge";
|
|
|
9
9
|
export * from "./scatter";
|
|
10
10
|
export * from "./step";
|
|
11
11
|
export * from "./radar";
|
|
12
|
+
export * from "./combo";
|
|
12
13
|
export * from "./treemap";
|
|
13
14
|
export declare const chartTypes: {
|
|
14
15
|
AreaChart: {
|
|
@@ -76,6 +77,11 @@ export declare const chartTypes: {
|
|
|
76
77
|
angular: string;
|
|
77
78
|
vue: string;
|
|
78
79
|
};
|
|
80
|
+
ComboChart: {
|
|
81
|
+
vanilla: string;
|
|
82
|
+
angular: string;
|
|
83
|
+
vue: string;
|
|
84
|
+
};
|
|
79
85
|
TreemapChart: {
|
|
80
86
|
vanilla: string;
|
|
81
87
|
angular: string;
|
|
@@ -360,3 +360,34 @@ export declare const lineSkeletonOptions: {
|
|
|
360
360
|
loading: boolean;
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
|
+
export declare const lineTimeSeriesDualAxesData: ({
|
|
364
|
+
group: string;
|
|
365
|
+
date: Date;
|
|
366
|
+
temp: number;
|
|
367
|
+
rainfall?: undefined;
|
|
368
|
+
} | {
|
|
369
|
+
group: string;
|
|
370
|
+
date: Date;
|
|
371
|
+
rainfall: number;
|
|
372
|
+
temp?: undefined;
|
|
373
|
+
})[];
|
|
374
|
+
export declare const dualLine: {
|
|
375
|
+
title: string;
|
|
376
|
+
axes: {
|
|
377
|
+
left: {
|
|
378
|
+
title: string;
|
|
379
|
+
mapsTo: string;
|
|
380
|
+
};
|
|
381
|
+
bottom: {
|
|
382
|
+
scaleType: string;
|
|
383
|
+
mapsTo: string;
|
|
384
|
+
title: string;
|
|
385
|
+
};
|
|
386
|
+
right: {
|
|
387
|
+
title: string;
|
|
388
|
+
mapsTo: string;
|
|
389
|
+
correspondingDatasets: string[];
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
curve: string;
|
|
393
|
+
};
|
|
@@ -103,3 +103,34 @@ export declare const scatterSkeletonOptions: {
|
|
|
103
103
|
loading: boolean;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
+
export declare const scatterDualAxesData: ({
|
|
107
|
+
group: string;
|
|
108
|
+
date: string;
|
|
109
|
+
orderCount: number;
|
|
110
|
+
productCount?: undefined;
|
|
111
|
+
} | {
|
|
112
|
+
group: string;
|
|
113
|
+
date: string;
|
|
114
|
+
productCount: number;
|
|
115
|
+
orderCount?: undefined;
|
|
116
|
+
})[];
|
|
117
|
+
export declare const scatterDualAxesOptions: {
|
|
118
|
+
title: string;
|
|
119
|
+
axes: {
|
|
120
|
+
bottom: {
|
|
121
|
+
mapsTo: string;
|
|
122
|
+
scaleType: string;
|
|
123
|
+
};
|
|
124
|
+
left: {
|
|
125
|
+
title: string;
|
|
126
|
+
mapsTo: string;
|
|
127
|
+
scaleType: string;
|
|
128
|
+
};
|
|
129
|
+
right: {
|
|
130
|
+
title: string;
|
|
131
|
+
mapsTo: string;
|
|
132
|
+
scaleType: string;
|
|
133
|
+
correspondingDatasets: string[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -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[]): (
|
|
9
|
+
protected getAxisChartComponents(graphFrameComponents: any[]): (AxisChartsTooltip | LayoutComponent)[];
|
|
10
10
|
}
|
package/build/src/chart.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export declare class Chart {
|
|
|
10
10
|
getComponents(): any[];
|
|
11
11
|
update(animate?: boolean): void;
|
|
12
12
|
destroy(): void;
|
|
13
|
-
protected getChartComponents(graphFrameComponents: any[]): (
|
|
13
|
+
protected getChartComponents(graphFrameComponents: any[]): (Tooltip | LayoutComponent)[];
|
|
14
14
|
}
|