@carbon/charts 0.32.10 → 0.33.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 +333 -147
- package/README.md +18 -8
- package/axis-chart.js +20 -20
- package/axis-chart.js.map +1 -1
- package/build/demo/data/area.d.ts +17 -0
- package/build/demo/data/bar.d.ts +32 -48
- package/build/demo/data/line.d.ts +29 -0
- package/build/src/interfaces/charts.d.ts +5 -0
- package/build/src/model.d.ts +1 -0
- package/build/src/services/scales-cartesian.d.ts +1 -1
- package/build/src/tools.d.ts +7 -7
- package/bundle.js +1 -1
- package/charts/area-stacked.js +3 -3
- package/charts/area-stacked.js.map +1 -1
- package/charts/area.js +3 -3
- package/charts/area.js.map +1 -1
- package/charts/bar-grouped.js +3 -3
- package/charts/bar-grouped.js.map +1 -1
- package/charts/bar-simple.js +3 -3
- package/charts/bar-simple.js.map +1 -1
- package/charts/bar-stacked.js +3 -3
- package/charts/bar-stacked.js.map +1 -1
- package/charts/bubble.js +3 -3
- package/charts/bubble.js.map +1 -1
- package/charts/donut.js +3 -3
- package/charts/donut.js.map +1 -1
- package/charts/gauge.js +2 -1
- package/charts/gauge.js.map +1 -1
- package/charts/line.js +3 -3
- package/charts/line.js.map +1 -1
- package/charts/pie.js +3 -3
- package/charts/pie.js.map +1 -1
- package/charts/radar.js +1 -1
- package/charts/radar.js.map +1 -1
- package/charts/scatter.js +3 -3
- package/charts/scatter.js.map +1 -1
- package/components/axes/axis.js +25 -23
- package/components/axes/axis.js.map +1 -1
- package/components/axes/grid.js +1 -1
- package/components/axes/grid.js.map +1 -1
- package/components/axes/ruler.js +2 -2
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/two-dimensional-axes.js +3 -3
- package/components/axes/two-dimensional-axes.js.map +1 -1
- package/components/axes/zero-line.js +1 -1
- package/components/axes/zero-line.js.map +1 -1
- package/components/essentials/legend.js +20 -11
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/threshold.js +9 -9
- package/components/essentials/threshold.js.map +1 -1
- package/components/essentials/title.js +2 -2
- package/components/essentials/title.js.map +1 -1
- package/components/essentials/tooltip-bar.js +9 -7
- package/components/essentials/tooltip-bar.js.map +1 -1
- package/components/essentials/tooltip.js +7 -7
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area-stacked.js +8 -7
- package/components/graphs/area-stacked.js.map +1 -1
- package/components/graphs/bar-grouped.js +7 -7
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-simple.js +6 -6
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/bar-stacked.js +6 -6
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/gauge.js +4 -3
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/line.js +14 -10
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/pie.js +12 -12
- package/components/graphs/pie.js.map +1 -1
- package/components/graphs/radar.js +11 -11
- package/components/graphs/radar.js.map +1 -1
- package/components/graphs/scatter-stacked.js +2 -4
- package/components/graphs/scatter-stacked.js.map +1 -1
- package/components/graphs/scatter.js +6 -8
- package/components/graphs/scatter.js.map +1 -1
- package/components/graphs/skeleton.js +3 -3
- package/components/graphs/skeleton.js.map +1 -1
- package/components/layout/layout.js +10 -4
- package/components/layout/layout.js.map +1 -1
- package/configuration.js +14 -9
- package/configuration.js.map +1 -1
- package/demo/create-codesandbox.js +19 -19
- package/demo/create-codesandbox.js.map +1 -1
- package/demo/data/area.d.ts +17 -0
- package/demo/data/area.js +26 -0
- package/demo/data/area.js.map +1 -1
- package/demo/data/bar.d.ts +32 -48
- package/demo/data/bar.js +134 -141
- package/demo/data/bar.js.map +1 -1
- package/demo/data/bubble.js +29 -29
- package/demo/data/bubble.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/index.js +21 -5
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +29 -0
- package/demo/data/line.js +122 -60
- package/demo/data/line.js.map +1 -1
- package/demo/data/pie.js +5 -5
- package/demo/data/pie.js.map +1 -1
- package/demo/data/radar.js +12 -12
- package/demo/data/radar.js.map +1 -1
- package/demo/data/scatter.js +48 -32
- package/demo/data/scatter.js.map +1 -1
- package/demo/data/step.js +6 -6
- package/demo/data/step.js.map +1 -1
- package/demo/data/time-series-axis.js +107 -107
- package/demo/data/time-series-axis.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +20 -20
- package/interfaces/a11y.js.map +1 -1
- package/interfaces/charts.d.ts +5 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.js.map +1 -1
- package/model.d.ts +1 -0
- package/model.js +61 -5
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/polyfills.js +1 -1
- package/polyfills.js.map +1 -1
- package/services/angle-utils.js +8 -8
- package/services/angle-utils.js.map +1 -1
- package/services/colorPalettes.js +2 -2
- package/services/colorPalettes.js.map +1 -1
- package/services/colors.js +1 -1
- package/services/colors.js.map +1 -1
- package/services/curves.js +2 -2
- package/services/curves.js.map +1 -1
- package/services/essentials/dom-utils.js +6 -6
- package/services/essentials/dom-utils.js.map +1 -1
- package/services/essentials/events.js +1 -1
- package/services/essentials/events.js.map +1 -1
- package/services/scales-cartesian.d.ts +1 -1
- package/services/scales-cartesian.js +18 -18
- package/services/scales-cartesian.js.map +1 -1
- package/services/time-series.js +2 -2
- package/services/time-series.js.map +1 -1
- package/tools.d.ts +7 -7
- package/tools.js +16 -14
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +55 -55
package/charts/area-stacked.js
CHANGED
|
@@ -16,7 +16,7 @@ import { AxisChart } from "../axis-chart";
|
|
|
16
16
|
import * as Configuration from "../configuration";
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
// Components
|
|
19
|
-
import { Grid, StackedArea, TwoDimensionalAxes, Line, StackedScatter, Ruler, TooltipScatter
|
|
19
|
+
import { Grid, StackedArea, TwoDimensionalAxes, Line, StackedScatter, Ruler, TooltipScatter } from "../components/index";
|
|
20
20
|
var StackedAreaChart = /** @class */ (function (_super) {
|
|
21
21
|
__extends(StackedAreaChart, _super);
|
|
22
22
|
function StackedAreaChart(holder, chartConfigs) {
|
|
@@ -39,8 +39,8 @@ var StackedAreaChart = /** @class */ (function (_super) {
|
|
|
39
39
|
new StackedScatter(this.model, this.services, {
|
|
40
40
|
fadeInOnChartHolderMouseover: true,
|
|
41
41
|
handleThresholds: true,
|
|
42
|
-
stacked: true
|
|
43
|
-
})
|
|
42
|
+
stacked: true
|
|
43
|
+
})
|
|
44
44
|
];
|
|
45
45
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
46
46
|
// TODO add tooltip
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area-stacked.js","sourceRoot":"","sources":["area-stacked.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EACN,IAAI,EACJ,WAAW,EACX,kBAAkB,EAClB,IAAI,EACJ,cAAc,EACd,KAAK,EACL,cAAc,
|
|
1
|
+
{"version":3,"file":"area-stacked.js","sourceRoot":"","sources":["area-stacked.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EACN,IAAI,EACJ,WAAW,EACX,kBAAkB,EAClB,IAAI,EACJ,cAAc,EACd,KAAK,EACL,cAAc,EACd,MAAM,qBAAqB,CAAC;AAE7B;IAAsC,oCAAS;IAC9C,0BAAY,MAAe,EAAE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,SAAS,GAuC9C","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, AreaChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\n\n// Components\nimport {\n\tGrid,\n\tStackedArea,\n\tTwoDimensionalAxes,\n\tLine,\n\tStackedScatter,\n\tRuler,\n\tTooltipScatter\n} from \"../components/index\";\n\nexport class StackedAreaChart extends AxisChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AreaChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.stackedAreaChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew StackedArea(this.model, this.services),\n\t\t\tnew Line(this.model, this.services, { stacked: true }),\n\t\t\tnew StackedScatter(this.model, this.services, {\n\t\t\t\tfadeInOnChartHolderMouseover: true,\n\t\t\t\thandleThresholds: true,\n\t\t\t\tstacked: true\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\t// TODO add tooltip\n\t\tcomponents.push(new TooltipScatter(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/area.js
CHANGED
|
@@ -16,7 +16,7 @@ import { AxisChart } from "../axis-chart";
|
|
|
16
16
|
import * as Configuration from "../configuration";
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
// Components
|
|
19
|
-
import { Grid, Area, Line, Ruler, Scatter, TwoDimensionalAxes, TooltipScatter
|
|
19
|
+
import { Grid, Area, Line, Ruler, Scatter, TwoDimensionalAxes, TooltipScatter } from "../components/index";
|
|
20
20
|
var AreaChart = /** @class */ (function (_super) {
|
|
21
21
|
__extends(AreaChart, _super);
|
|
22
22
|
function AreaChart(holder, chartConfigs) {
|
|
@@ -38,8 +38,8 @@ var AreaChart = /** @class */ (function (_super) {
|
|
|
38
38
|
new Area(this.model, this.services),
|
|
39
39
|
new Scatter(this.model, this.services, {
|
|
40
40
|
fadeInOnChartHolderMouseover: true,
|
|
41
|
-
handleThresholds: true
|
|
42
|
-
})
|
|
41
|
+
handleThresholds: true
|
|
42
|
+
})
|
|
43
43
|
];
|
|
44
44
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
45
45
|
components.push(new TooltipScatter(this.model, this.services));
|
package/charts/area.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area.js","sourceRoot":"","sources":["area.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EACN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,kBAAkB,EAKlB,cAAc,
|
|
1
|
+
{"version":3,"file":"area.js","sourceRoot":"","sources":["area.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EACN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,k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CAAC;IACF,gBAAC;AAAD,CAAC,AArCD,CAA+B,SAAS,GAqCvC","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, AreaChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\n\n// Components\nimport {\n\tGrid,\n\tArea,\n\tLine,\n\tRuler,\n\tScatter,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tTooltipScatter\n} from \"../components/index\";\n\nexport class AreaChart extends AxisChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<AreaChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tTools.clone(Configuration.options.areaChart),\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew Line(this.model, this.services),\n\t\t\tnew Area(this.model, this.services),\n\t\t\tnew Scatter(this.model, this.services, {\n\t\t\t\tfadeInOnChartHolderMouseover: true,\n\t\t\t\thandleThresholds: true\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipScatter(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/bar-grouped.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Grid, GroupedBar, TwoDimensionalAxes, ZeroLine, TooltipBar, Skeleton
|
|
20
|
+
import { Grid, GroupedBar, TwoDimensionalAxes, ZeroLine, TooltipBar, Skeleton } from "../components/index";
|
|
21
21
|
var GroupedBarChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(GroupedBarChart, _super);
|
|
23
23
|
function GroupedBarChart(holder, chartConfigs) {
|
|
@@ -37,8 +37,8 @@ var GroupedBarChart = /** @class */ (function (_super) {
|
|
|
37
37
|
new GroupedBar(this.model, this.services),
|
|
38
38
|
new ZeroLine(this.model, this.services),
|
|
39
39
|
new Skeleton(this.model, this.services, {
|
|
40
|
-
skeleton: Skeletons.VERT_OR_HORIZ
|
|
41
|
-
})
|
|
40
|
+
skeleton: Skeletons.VERT_OR_HORIZ
|
|
41
|
+
})
|
|
42
42
|
];
|
|
43
43
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
44
44
|
components.push(new TooltipBar(this.model, this.services));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-grouped.js","sourceRoot":"","sources":["bar-grouped.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,UAAU,EAKV,QAAQ,
|
|
1
|
+
{"version":3,"file":"bar-grouped.js","sourceRoot":"","sources":["bar-grouped.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa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AAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,sBAAC;AAAD,CAAC,AAnCD,CAAqC,SAAS,GAmC7C","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { BarChartOptions, ChartConfig } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tGrid,\n\tGroupedBar,\n\tTwoDimensionalAxes,\n\tZeroLine,\n\tTooltipBar,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tSkeleton\n} from \"../components/index\";\n\nexport class GroupedBarChart extends AxisChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<BarChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.groupedBarChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew GroupedBar(this.model, this.services),\n\t\t\tnew ZeroLine(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.VERT_OR_HORIZ\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipBar(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/bar-simple.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Grid, SimpleBar, TwoDimensionalAxes, ZeroLine, TooltipBar, Skeleton
|
|
20
|
+
import { Grid, SimpleBar, TwoDimensionalAxes, ZeroLine, TooltipBar, Skeleton } from "../components/index";
|
|
21
21
|
var SimpleBarChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(SimpleBarChart, _super);
|
|
23
23
|
function SimpleBarChart(holder, chartConfigs) {
|
|
@@ -37,8 +37,8 @@ var SimpleBarChart = /** @class */ (function (_super) {
|
|
|
37
37
|
new SimpleBar(this.model, this.services),
|
|
38
38
|
new ZeroLine(this.model, this.services),
|
|
39
39
|
new Skeleton(this.model, this.services, {
|
|
40
|
-
skeleton: Skeletons.VERT_OR_HORIZ
|
|
41
|
-
})
|
|
40
|
+
skeleton: Skeletons.VERT_OR_HORIZ
|
|
41
|
+
})
|
|
42
42
|
];
|
|
43
43
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
44
44
|
components.push(new TooltipBar(this.model, this.services));
|
package/charts/bar-simple.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-simple.js","sourceRoot":"","sources":["bar-simple.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,UAAU,EAKV,QAAQ,
|
|
1
|
+
{"version":3,"file":"bar-simple.js","sourceRoot":"","sources":["bar-simple.ts"],"names":[],"mappings":";;;;;;;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BAAsB,CACpD,oBAAoB,CACpB,CAAC;QACF,UAAU,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,qBAAC;AAAD,CAAC,AAnCD,CAAoC,SAAS,GAmC5C","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { BarChartOptions, ChartConfig } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tGrid,\n\tSimpleBar,\n\tTwoDimensionalAxes,\n\tZeroLine,\n\tTooltipBar,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tSkeleton\n} from \"../components/index\";\n\nexport class SimpleBarChart extends AxisChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<BarChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.simpleBarChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew SimpleBar(this.model, this.services),\n\t\t\tnew ZeroLine(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.VERT_OR_HORIZ\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipBar(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/bar-stacked.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Grid, StackedBar, TwoDimensionalAxes, TooltipBar, Skeleton
|
|
20
|
+
import { Grid, StackedBar, TwoDimensionalAxes, TooltipBar, Skeleton } from "../components/index";
|
|
21
21
|
var StackedBarChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(StackedBarChart, _super);
|
|
23
23
|
function StackedBarChart(holder, chartConfigs) {
|
|
@@ -36,8 +36,8 @@ var StackedBarChart = /** @class */ (function (_super) {
|
|
|
36
36
|
new Grid(this.model, this.services),
|
|
37
37
|
new StackedBar(this.model, this.services),
|
|
38
38
|
new Skeleton(this.model, this.services, {
|
|
39
|
-
skeleton: Skeletons.VERT_OR_HORIZ
|
|
40
|
-
})
|
|
39
|
+
skeleton: Skeletons.VERT_OR_HORIZ
|
|
40
|
+
})
|
|
41
41
|
];
|
|
42
42
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
43
43
|
components.push(new TooltipBar(this.model, this.services));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-stacked.js","sourceRoot":"","sources":["bar-stacked.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,UAAU,EACV,kBAAkB,EAKlB,UAAU,EACV,QAAQ,
|
|
1
|
+
{"version":3,"file":"bar-stacked.js","sourceRoot":"","sources":["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I,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,sBAAC;AAAD,CAAC,AArCD,CAAqC,SAAS,GAqC7C","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, ScatterChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tGrid,\n\tStackedBar,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tTooltipBar,\n\tSkeleton\n} from \"../components/index\";\n\nexport class StackedBarChart extends AxisChart {\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<ScatterChartOptions>\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.stackedBarChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew StackedBar(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.VERT_OR_HORIZ\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipBar(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/bubble.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Grid, Ruler, Bubble, TwoDimensionalAxes, TooltipScatter, Skeleton
|
|
20
|
+
import { Grid, Ruler, Bubble, TwoDimensionalAxes, TooltipScatter, Skeleton } from "../components/index";
|
|
21
21
|
var BubbleChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(BubbleChart, _super);
|
|
23
23
|
function BubbleChart(holder, chartConfigs) {
|
|
@@ -37,8 +37,8 @@ var BubbleChart = /** @class */ (function (_super) {
|
|
|
37
37
|
new Ruler(this.model, this.services),
|
|
38
38
|
new Bubble(this.model, this.services),
|
|
39
39
|
new Skeleton(this.model, this.services, {
|
|
40
|
-
skeleton: Skeletons.GRID
|
|
41
|
-
})
|
|
40
|
+
skeleton: Skeletons.GRID
|
|
41
|
+
})
|
|
42
42
|
];
|
|
43
43
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
44
44
|
components.push(new TooltipScatter(this.model, this.services));
|
package/charts/bubble.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble.js","sourceRoot":"","sources":["bubble.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,KAAK,EACL,MAAM,EACN,kBAAkB,EAKlB,cAAc,EACd,QAAQ,
|
|
1
|
+
{"version":3,"file":"bubble.js","sourceRoot":"","sources":["bubble.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,S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AAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,kBAAC;AAAD,CAAC,AAtCD,CAAiC,SAAS,GAsCzC","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, BubbleChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tGrid,\n\tRuler,\n\tBubble,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tTooltipScatter,\n\tSkeleton\n} from \"../components/index\";\n\nexport class BubbleChart extends AxisChart {\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<BubbleChartOptions>\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.bubbleChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew Bubble(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.GRID\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipScatter(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/donut.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Donut, Skeleton, TooltipPie
|
|
20
|
+
import { Donut, Skeleton, TooltipPie } from "../components/index";
|
|
21
21
|
var DonutChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(DonutChart, _super);
|
|
23
23
|
function DonutChart(holder, chartConfigs) {
|
|
@@ -34,8 +34,8 @@ var DonutChart = /** @class */ (function (_super) {
|
|
|
34
34
|
var graphFrameComponents = [
|
|
35
35
|
new Donut(this.model, this.services),
|
|
36
36
|
new Skeleton(this.model, this.services, {
|
|
37
|
-
skeleton: Skeletons.DONUT
|
|
38
|
-
})
|
|
37
|
+
skeleton: Skeletons.DONUT
|
|
38
|
+
})
|
|
39
39
|
];
|
|
40
40
|
var components = this.getChartComponents(graphFrameComponents);
|
|
41
41
|
components.push(new TooltipPie(this.model, this.services));
|
package/charts/donut.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"donut.js","sourceRoot":"","sources":["donut.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,KAAK,EAIL,QAAQ,EACR,UAAU,
|
|
1
|
+
{"version":3,"file":"donut.js","sourceRoot":"","sources":["donut.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,KAAK,EAIL,QAAQ,EACR,UAAU,EACV,MAAM,qBAAqB,CAAC;AAE7B;IAAgC,8BAAQ;IACvC,oBAAY,MAAe,EAAE,YAA0C;QAAvE,YACC,kBAAM,MAAM,EAAE,YAAY,EAAE,IAAI,CAAC,SAajC;QAXA,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,UAAU,EAChC,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;IACjC,CAAC;IAED,kCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAG;YAC5B,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;YACpC,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACvC,QAAQ,EAAE,SAAS,CAAC,KAAK;aACzB,CAAC;SACF,CAAC;QAEF,IAAM,UAAU,GAAU,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;QACxE,UAAU,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,iBAAC;AAAD,CAAC,AA9BD,CAAgC,QAAQ,GA8BvC","sourcesContent":["// Internal Imports\nimport { PieChart } from \"./pie\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, PieChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tDonut,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tLegend,\n\tLayoutComponent,\n\tSkeleton,\n\tTooltipPie\n} from \"../components/index\";\n\nexport class DonutChart extends PieChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<PieChartOptions>) {\n\t\tsuper(holder, chartConfigs, true);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.donutChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew Donut(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.DONUT\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getChartComponents(graphFrameComponents);\n\t\tcomponents.push(new TooltipPie(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/gauge.js
CHANGED
|
@@ -16,7 +16,7 @@ import { Chart } from "../chart";
|
|
|
16
16
|
import * as Configuration from "../configuration";
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
// Components
|
|
19
|
-
import { Gauge } from "../components/index";
|
|
19
|
+
import { Gauge, Tooltip } from "../components/index";
|
|
20
20
|
var GaugeChart = /** @class */ (function (_super) {
|
|
21
21
|
__extends(GaugeChart, _super);
|
|
22
22
|
function GaugeChart(holder, chartConfigs) {
|
|
@@ -32,6 +32,7 @@ var GaugeChart = /** @class */ (function (_super) {
|
|
|
32
32
|
// Specify what to render inside the graph-frame
|
|
33
33
|
var graphFrameComponents = [new Gauge(this.model, this.services)];
|
|
34
34
|
var components = this.getChartComponents(graphFrameComponents);
|
|
35
|
+
components.push(new Tooltip(this.model, this.services));
|
|
35
36
|
return components;
|
|
36
37
|
};
|
|
37
38
|
return GaugeChart;
|
package/charts/gauge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gauge.js","sourceRoot":"","sources":["gauge.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,
|
|
1
|
+
{"version":3,"file":"gauge.js","sourceRoot":"","sources":["gauge.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAErD;IAAgC,8BAAK;IACpC,oBAAY,MAAe,EAAE,YAA4C;QAAzE,YACC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAa3B;QAXA,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,UAAU,EAChC,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;IACjC,CAAC;IAED,kCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEpE,IAAM,UAAU,GAAU,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;QACxE,UAAU,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAExD,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,iBAAC;AAAD,CAAC,AA1BD,CAAgC,KAAK,GA0BpC","sourcesContent":["// Internal Imports\nimport { Chart } from \"../chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, GaugeChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\n\n// Components\nimport { Gauge, Tooltip } from \"../components/index\";\n\nexport class GaugeChart extends Chart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<GaugeChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.gaugeChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [new Gauge(this.model, this.services)];\n\n\t\tconst components: any[] = this.getChartComponents(graphFrameComponents);\n\t\tcomponents.push(new Tooltip(this.model, this.services));\n\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/line.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Grid, Line, Ruler, Scatter, TwoDimensionalAxes, TooltipScatter, Skeleton
|
|
20
|
+
import { Grid, Line, Ruler, Scatter, TwoDimensionalAxes, TooltipScatter, Skeleton } from "../components/index";
|
|
21
21
|
var LineChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(LineChart, _super);
|
|
23
23
|
function LineChart(holder, chartConfigs) {
|
|
@@ -38,8 +38,8 @@ var LineChart = /** @class */ (function (_super) {
|
|
|
38
38
|
new Line(this.model, this.services),
|
|
39
39
|
new Scatter(this.model, this.services, { handleThresholds: true }),
|
|
40
40
|
new Skeleton(this.model, this.services, {
|
|
41
|
-
skeleton: Skeletons.GRID
|
|
42
|
-
})
|
|
41
|
+
skeleton: Skeletons.GRID
|
|
42
|
+
})
|
|
43
43
|
];
|
|
44
44
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
45
45
|
components.push(new TooltipScatter(this.model, this.services));
|
package/charts/line.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.js","sourceRoot":"","sources":["line.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,kBAAkB,EAKlB,cAAc,EACd,QAAQ,
|
|
1
|
+
{"version":3,"file":"line.js","sourceRoot":"","sources":["line.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,kBAAkB,EAKlB,cAAc,EACd,QAAQ,EACR,MAAM,qBAAqB,CAAC;AAE7B;IAA+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":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, LineChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tGrid,\n\tLine,\n\tRuler,\n\tScatter,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tTooltipScatter,\n\tSkeleton\n} from \"../components/index\";\n\nexport class LineChart extends AxisChart {\n\tconstructor(holder: Element, chartConfigs: ChartConfig<LineChartOptions>) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.lineChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew Line(this.model, this.services),\n\t\t\tnew Scatter(this.model, this.services, { handleThresholds: true }),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.GRID\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipScatter(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/pie.js
CHANGED
|
@@ -20,7 +20,7 @@ import { Skeletons } from "../interfaces/enums";
|
|
|
20
20
|
// Components
|
|
21
21
|
import { Pie,
|
|
22
22
|
// the imports below are needed because of typescript bug (error TS4029)
|
|
23
|
-
TooltipPie, Skeleton
|
|
23
|
+
TooltipPie, Skeleton } from "../components/index";
|
|
24
24
|
var PieChart = /** @class */ (function (_super) {
|
|
25
25
|
__extends(PieChart, _super);
|
|
26
26
|
// TODO - Optimize the use of "extending"
|
|
@@ -44,8 +44,8 @@ var PieChart = /** @class */ (function (_super) {
|
|
|
44
44
|
var graphFrameComponents = [
|
|
45
45
|
new Pie(this.model, this.services),
|
|
46
46
|
new Skeleton(this.model, this.services, {
|
|
47
|
-
skeleton: Skeletons.PIE
|
|
48
|
-
})
|
|
47
|
+
skeleton: Skeletons.PIE
|
|
48
|
+
})
|
|
49
49
|
];
|
|
50
50
|
// get the base chart components and export with tooltip
|
|
51
51
|
var components = this.getChartComponents(graphFrameComponents);
|
package/charts/pie.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pie.js","sourceRoot":"","sources":["pie.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,GAAG;AACH,wEAAwE;AACxE,UAAU,EAGV,QAAQ,
|
|
1
|
+
{"version":3,"file":"pie.js","sourceRoot":"","sources":["pie.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC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pie\";\nimport { Chart } from \"../chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, PieChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tPie,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltipPie,\n\tLegend,\n\tLayoutComponent,\n\tSkeleton\n} from \"../components/index\";\n\nexport class PieChart extends Chart {\n\tmodel = new PieChartModel(this.services);\n\n\t// TODO - Optimize the use of \"extending\"\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<PieChartOptions>,\n\t\textending = false\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// TODO - Optimize the use of \"extending\"\n\t\tif (extending) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.pieChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew Pie(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.PIE\n\t\t\t})\n\t\t];\n\n\t\t// get the base chart components and export with tooltip\n\t\tconst components: any[] = this.getChartComponents(graphFrameComponents);\n\t\tcomponents.push(new TooltipPie(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/radar.js
CHANGED
|
@@ -16,7 +16,7 @@ import { Chart } from "../chart";
|
|
|
16
16
|
import * as Configuration from "../configuration";
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
// Components
|
|
19
|
-
import { TooltipRadar
|
|
19
|
+
import { TooltipRadar } from "../components/index";
|
|
20
20
|
import { Radar } from "../components/graphs/radar";
|
|
21
21
|
var RadarChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(RadarChart, _super);
|
package/charts/radar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radar.js","sourceRoot":"","sources":["radar.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EAIN,YAAY,
|
|
1
|
+
{"version":3,"file":"radar.js","sourceRoot":"","sources":["radar.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,aAAa;AACb,OAAO,EAIN,YAAY,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEnD;IAAgC,8BAAK;IACpC,yCAAyC;IACzC,oBACC,MAAe,EACf,YAA4C,EAC5C,SAAiB;QAAjB,0BAAA,EAAA,iBAAiB;QAHlB,YAKC,kBAAM,MAAM,EAAE,YAAY,CAAC,SAkB3B;QAhBA,yCAAyC;QACzC,IAAI,SAAS,EAAE;;SAEd;QAED,2CAA2C;QAC3C,iCAAiC;QACjC,KAAI,CAAC,KAAK,CAAC,UAAU,CACpB,KAAK,CAAC,wBAAwB,CAC7B,aAAa,CAAC,OAAO,CAAC,UAAU,EAChC,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QAEF,6CAA6C;QAC7C,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;;IACjC,CAAC;IAED,kCAAa,GAAb;QACC,gDAAgD;QAChD,IAAM,oBAAoB,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEpE,wDAAwD;QACxD,IAAM,UAAU,GAAU,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;QACxE,UAAU,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,iBAAC;AAAD,CAAC,AApCD,CAAgC,KAAK,GAoCpC","sourcesContent":["// Internal Imports\nimport { Chart } from \"../chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, RadarChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\n\n// Components\nimport {\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tLegend,\n\tLayoutComponent,\n\tTooltipRadar\n} from \"../components/index\";\nimport { Radar } from \"../components/graphs/radar\";\n\nexport class RadarChart extends Chart {\n\t// TODO - Optimize the use of \"extending\"\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<RadarChartOptions>,\n\t\textending = false\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// TODO - Optimize the use of \"extending\"\n\t\tif (extending) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.radarChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [new Radar(this.model, this.services)];\n\n\t\t// get the base chart components and export with tooltip\n\t\tconst components: any[] = this.getChartComponents(graphFrameComponents);\n\t\tcomponents.push(new TooltipRadar(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/charts/scatter.js
CHANGED
|
@@ -17,7 +17,7 @@ import * as Configuration from "../configuration";
|
|
|
17
17
|
import { Tools } from "../tools";
|
|
18
18
|
import { Skeletons } from "../interfaces/enums";
|
|
19
19
|
// Components
|
|
20
|
-
import { Grid, Ruler, Scatter, TwoDimensionalAxes, TooltipScatter, Skeleton
|
|
20
|
+
import { Grid, Ruler, Scatter, TwoDimensionalAxes, TooltipScatter, Skeleton } from "../components/index";
|
|
21
21
|
var ScatterChart = /** @class */ (function (_super) {
|
|
22
22
|
__extends(ScatterChart, _super);
|
|
23
23
|
function ScatterChart(holder, chartConfigs) {
|
|
@@ -37,8 +37,8 @@ var ScatterChart = /** @class */ (function (_super) {
|
|
|
37
37
|
new Ruler(this.model, this.services),
|
|
38
38
|
new Scatter(this.model, this.services),
|
|
39
39
|
new Skeleton(this.model, this.services, {
|
|
40
|
-
skeleton: Skeletons.GRID
|
|
41
|
-
})
|
|
40
|
+
skeleton: Skeletons.GRID
|
|
41
|
+
})
|
|
42
42
|
];
|
|
43
43
|
var components = this.getAxisChartComponents(graphFrameComponents);
|
|
44
44
|
components.push(new TooltipScatter(this.model, this.services));
|
package/charts/scatter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scatter.js","sourceRoot":"","sources":["scatter.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,aAAa;AACb,OAAO,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,kBAAkB,EAKlB,cAAc,EACd,QAAQ,
|
|
1
|
+
{"version":3,"file":"scatter.js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CAAC;QAEF,IAAM,UAAU,GAAU,IAAI,CAAC,sBAAsB,CACpD,oBAAoB,CACpB,CAAC;QACF,UAAU,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/D,OAAO,UAAU,CAAC;IACnB,CAAC;IACF,mBAAC;AAAD,CAAC,AAtCD,CAAkC,SAAS,GAsC1C","sourcesContent":["// Internal Imports\nimport { AxisChart } from \"../axis-chart\";\nimport * as Configuration from \"../configuration\";\nimport { ChartConfig, ScatterChartOptions } from \"../interfaces/index\";\nimport { Tools } from \"../tools\";\nimport { Skeletons } from \"../interfaces/enums\";\n\n// Components\nimport {\n\tGrid,\n\tRuler,\n\tScatter,\n\tTwoDimensionalAxes,\n\t// the imports below are needed because of typescript bug (error TS4029)\n\tTooltip,\n\tLegend,\n\tLayoutComponent,\n\tTooltipScatter,\n\tSkeleton\n} from \"../components/index\";\n\nexport class ScatterChart extends AxisChart {\n\tconstructor(\n\t\tholder: Element,\n\t\tchartConfigs: ChartConfig<ScatterChartOptions>\n\t) {\n\t\tsuper(holder, chartConfigs);\n\n\t\t// Merge the default options for this chart\n\t\t// With the user provided options\n\t\tthis.model.setOptions(\n\t\t\tTools.mergeDefaultChartOptions(\n\t\t\t\tConfiguration.options.scatterChart,\n\t\t\t\tchartConfigs.options\n\t\t\t)\n\t\t);\n\n\t\t// Initialize data, services, components etc.\n\t\tthis.init(holder, chartConfigs);\n\t}\n\n\tgetComponents() {\n\t\t// Specify what to render inside the graph-frame\n\t\tconst graphFrameComponents = [\n\t\t\tnew TwoDimensionalAxes(this.model, this.services),\n\t\t\tnew Grid(this.model, this.services),\n\t\t\tnew Ruler(this.model, this.services),\n\t\t\tnew Scatter(this.model, this.services),\n\t\t\tnew Skeleton(this.model, this.services, {\n\t\t\t\tskeleton: Skeletons.GRID\n\t\t\t})\n\t\t];\n\n\t\tconst components: any[] = this.getAxisChartComponents(\n\t\t\tgraphFrameComponents\n\t\t);\n\t\tcomponents.push(new TooltipScatter(this.model, this.services));\n\t\treturn components;\n\t}\n}\n"]}
|
package/components/axes/axis.js
CHANGED
|
@@ -17,7 +17,7 @@ import { AxisPositions, Events, ScaleTypes, Roles, TooltipTypes, TruncationTypes
|
|
|
17
17
|
import { Tools } from "../../tools";
|
|
18
18
|
import { DOMUtils } from "../../services";
|
|
19
19
|
import * as Configuration from "../../configuration";
|
|
20
|
-
import { computeTimeIntervalName, formatTick, isTickPrimary
|
|
20
|
+
import { computeTimeIntervalName, formatTick, isTickPrimary } from "../../services/time-series";
|
|
21
21
|
// D3 Imports
|
|
22
22
|
import { select } from "d3-selection";
|
|
23
23
|
import { axisBottom, axisLeft, axisRight, axisTop } from "d3-axis";
|
|
@@ -49,7 +49,7 @@ var Axis = /** @class */ (function (_super) {
|
|
|
49
49
|
var timeScaleOptions = Tools.getProperty(options, "timeScale");
|
|
50
50
|
var svg = this.getContainerSVG();
|
|
51
51
|
var _a = DOMUtils.getSVGElementSize(this.parent, {
|
|
52
|
-
useAttrs: true
|
|
52
|
+
useAttrs: true
|
|
53
53
|
}), width = _a.width, height = _a.height;
|
|
54
54
|
var startPosition, endPosition;
|
|
55
55
|
if (axisPosition === AxisPositions.BOTTOM ||
|
|
@@ -107,7 +107,7 @@ var Axis = /** @class */ (function (_super) {
|
|
|
107
107
|
var fakeTick = DOMUtils.appendOrSelect(invisibleAxisRef, "g.tick");
|
|
108
108
|
var fakeTickText = DOMUtils.appendOrSelect(fakeTick, "text").text("0");
|
|
109
109
|
var tickHeight = DOMUtils.getSVGElementSize(fakeTickText.node(), {
|
|
110
|
-
useBBox: true
|
|
110
|
+
useBBox: true
|
|
111
111
|
}).height;
|
|
112
112
|
fakeTick.remove();
|
|
113
113
|
var isTimeScaleType = this.scaleType === ScaleTypes.TIME ||
|
|
@@ -138,13 +138,15 @@ var Axis = /** @class */ (function (_super) {
|
|
|
138
138
|
axis.tickValues([]);
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
var
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
var addSpaceOnEdges = Tools.getProperty(options, "timeScale", "addSpaceOnEdges");
|
|
142
|
+
var tickValues = void 0;
|
|
143
|
+
if (addSpaceOnEdges) {
|
|
144
|
+
tickValues = scale.nice(numberOfTicks);
|
|
145
|
+
}
|
|
146
|
+
tickValues = scale.ticks(numberOfTicks);
|
|
144
147
|
// Remove labels on the edges
|
|
145
148
|
// If there are more than 2 labels to show
|
|
146
|
-
if (
|
|
147
|
-
tickValues.length > 2) {
|
|
149
|
+
if (addSpaceOnEdges && tickValues.length > 2) {
|
|
148
150
|
tickValues.splice(tickValues.length - 1, 1);
|
|
149
151
|
tickValues.splice(0, 1);
|
|
150
152
|
}
|
|
@@ -224,7 +226,7 @@ var Axis = /** @class */ (function (_super) {
|
|
|
224
226
|
break;
|
|
225
227
|
case AxisPositions.TOP:
|
|
226
228
|
var titleHeight = DOMUtils.getSVGElementSize(axisTitleRef, {
|
|
227
|
-
useBBox: true
|
|
229
|
+
useBBox: true
|
|
228
230
|
}).height;
|
|
229
231
|
axisTitleRef
|
|
230
232
|
.attr("transform", "translate(" + (this.margins.left / 2 + scale.range()[1] / 2) + ", " + titleHeight / 2 + ")")
|
|
@@ -314,14 +316,15 @@ var Axis = /** @class */ (function (_super) {
|
|
|
314
316
|
}
|
|
315
317
|
// truncate the label if it's too long
|
|
316
318
|
// only applies to discrete type
|
|
317
|
-
if (truncationType !== TruncationTypes.NONE &&
|
|
319
|
+
if (truncationType !== TruncationTypes.NONE &&
|
|
320
|
+
axisScaleType === ScaleTypes.LABELS) {
|
|
318
321
|
var dataGroups = this.model.getDataValuesGroupedByKeys();
|
|
319
322
|
if (dataGroups.length > 0) {
|
|
320
323
|
var activeDataGroups = dataGroups.map(function (d) { return d.sharedStackKey; });
|
|
321
|
-
var tick_html = svg
|
|
322
|
-
|
|
323
|
-
.
|
|
324
|
-
|
|
324
|
+
var tick_html = svg
|
|
325
|
+
.select("g.axis." + axisPosition + " g.ticks g.tick")
|
|
326
|
+
.html();
|
|
327
|
+
container.selectAll("g.ticks g.tick").html(tick_html);
|
|
325
328
|
container
|
|
326
329
|
.selectAll("g.tick text")
|
|
327
330
|
.data(activeDataGroups)
|
|
@@ -347,9 +350,7 @@ var Axis = /** @class */ (function (_super) {
|
|
|
347
350
|
container
|
|
348
351
|
.selectAll("g.ticks")
|
|
349
352
|
.html(this.getInvisibleAxisRef().html());
|
|
350
|
-
container
|
|
351
|
-
.selectAll("g.tick text")
|
|
352
|
-
.data(activeDataGroups);
|
|
353
|
+
container.selectAll("g.tick text").data(activeDataGroups);
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
356
|
// Add event listeners to elements drawn
|
|
@@ -372,19 +373,20 @@ var Axis = /** @class */ (function (_super) {
|
|
|
372
373
|
// Dispatch mouse event
|
|
373
374
|
self.services.events.dispatchEvent(Events.Axis.LABEL_MOUSEOVER, {
|
|
374
375
|
element: select(this),
|
|
375
|
-
datum: datum
|
|
376
|
+
datum: datum
|
|
376
377
|
});
|
|
377
378
|
})
|
|
378
379
|
.on("mousemove", function (datum) {
|
|
379
380
|
// Dispatch mouse event
|
|
380
381
|
self.services.events.dispatchEvent(Events.Axis.LABEL_MOUSEMOVE, {
|
|
381
382
|
element: select(this),
|
|
382
|
-
datum: datum
|
|
383
|
+
datum: datum
|
|
383
384
|
});
|
|
384
|
-
if (axisScaleType === ScaleTypes.LABELS &&
|
|
385
|
+
if (axisScaleType === ScaleTypes.LABELS &&
|
|
386
|
+
datum.length > truncationThreshold) {
|
|
385
387
|
self.services.events.dispatchEvent(Events.Tooltip.SHOW, {
|
|
386
388
|
hoveredElement: select(this),
|
|
387
|
-
type: TooltipTypes.AXISLABEL
|
|
389
|
+
type: TooltipTypes.AXISLABEL
|
|
388
390
|
});
|
|
389
391
|
}
|
|
390
392
|
})
|
|
@@ -392,14 +394,14 @@ var Axis = /** @class */ (function (_super) {
|
|
|
392
394
|
// Dispatch mouse event
|
|
393
395
|
self.services.events.dispatchEvent(Events.Axis.LABEL_CLICK, {
|
|
394
396
|
element: select(this),
|
|
395
|
-
datum: datum
|
|
397
|
+
datum: datum
|
|
396
398
|
});
|
|
397
399
|
})
|
|
398
400
|
.on("mouseout", function (datum) {
|
|
399
401
|
// Dispatch mouse event
|
|
400
402
|
self.services.events.dispatchEvent(Events.Axis.LABEL_MOUSEOUT, {
|
|
401
403
|
element: select(this),
|
|
402
|
-
datum: datum
|
|
404
|
+
datum: datum
|
|
403
405
|
});
|
|
404
406
|
if (axisScaleType === ScaleTypes.LABELS) {
|
|
405
407
|
self.services.events.dispatchEvent(Events.Tooltip.HIDE);
|