@carbon/charts 0.41.1 → 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 +39 -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/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/build/stories/tutorials/api.d.ts +4 -0
- package/build/stories/tutorials/color-palette.d.ts +4 -1
- package/build/stories/tutorials/event-listeners.d.ts +4 -1
- package/build/stories/tutorials/getting-started/angular.d.ts +5 -1
- package/build/stories/tutorials/getting-started/react.d.ts +5 -1
- package/build/stories/tutorials/getting-started/vanilla.d.ts +5 -1
- package/build/stories/tutorials/getting-started/vue.d.ts +5 -1
- package/build/stories/tutorials/index.d.ts +2 -0
- package/build/stories/tutorials/tabular-data-format.d.ts +4 -1
- package/build/stories/tutorials/themes.d.ts +4 -0
- package/build/stories/utils.d.ts +1 -9
- 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 +9 -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/styles.css +14 -8
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +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 +66 -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 +135 -52
- package/services/scales-cartesian.js.map +1 -1
- package/styles/color-palatte.scss +243 -0
- package/styles/colors.scss +23 -272
- package/styles/components/_toolbar.scss +2 -2
- package/styles-g10.css +2 -2
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +2 -2
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +2 -2
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +2 -2
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.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
|
@@ -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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxisChart } from "../axis-chart";
|
|
2
|
-
import { ChartConfig,
|
|
2
|
+
import { ChartConfig, BarChartOptions } from "../interfaces/index";
|
|
3
3
|
export declare class StackedBarChart extends AxisChart {
|
|
4
|
-
constructor(holder: Element, chartConfigs: ChartConfig<
|
|
4
|
+
constructor(holder: Element, chartConfigs: ChartConfig<BarChartOptions>);
|
|
5
5
|
getComponents(): any[];
|
|
6
6
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AxisChart } from "../axis-chart";
|
|
2
|
+
import { ChartConfig, ComboChartOptions } from "../interfaces/index";
|
|
3
|
+
export declare class ComboChart extends AxisChart {
|
|
4
|
+
constructor(holder: Element, chartConfigs: ChartConfig<ComboChartOptions>);
|
|
5
|
+
getGraphComponents(): any;
|
|
6
|
+
getComponents(): any[];
|
|
7
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Component } from "../component";
|
|
2
2
|
import { ChartModelCartesian } from "../../model-cartesian-charts";
|
|
3
3
|
export declare class ZoomBar extends Component {
|
|
4
|
-
protected model: ChartModelCartesian;
|
|
5
4
|
type: string;
|
|
6
5
|
MIN_SELECTION_DIFF: number;
|
|
7
6
|
brushSelector: string;
|
|
@@ -10,6 +9,7 @@ export declare class ZoomBar extends Component {
|
|
|
10
9
|
brush: import("d3-brush").BrushBehavior<unknown>;
|
|
11
10
|
xScale: any;
|
|
12
11
|
yScale: any;
|
|
12
|
+
protected model: ChartModelCartesian;
|
|
13
13
|
init(): void;
|
|
14
14
|
render(animate?: boolean): void;
|
|
15
15
|
addBrushEventListener(zoomDomain: any, axesLeftMargin: any, width: any): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChartModel } from "../model";
|
|
2
2
|
export declare class Component {
|
|
3
3
|
type: string;
|
|
4
|
+
id: string;
|
|
4
5
|
protected parent: any;
|
|
5
6
|
protected configs: any;
|
|
6
7
|
protected model: ChartModel;
|
|
@@ -16,4 +17,10 @@ export declare class Component {
|
|
|
16
17
|
getContainerSVG(configs?: {
|
|
17
18
|
withinChartClip: boolean;
|
|
18
19
|
}): any;
|
|
20
|
+
/**
|
|
21
|
+
* graphs used in combo charts share a model with global options but can receive their own local options.
|
|
22
|
+
* this function retrieves the global options and merges it with any options passed into this
|
|
23
|
+
* component's config.options object.
|
|
24
|
+
*/
|
|
25
|
+
getOptions(): any;
|
|
19
26
|
}
|
|
@@ -11,7 +11,6 @@ export declare class Scatter extends Component {
|
|
|
11
11
|
handleChartHolderOnMouseOut: (event: CustomEvent<any>) => void;
|
|
12
12
|
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
13
13
|
handleLegendMouseOut: (event: CustomEvent<any>) => void;
|
|
14
|
-
getTooltipData(hoveredX: any, hoveredY: any): any;
|
|
15
14
|
addEventListeners(): void;
|
|
16
15
|
destroy(): void;
|
|
17
16
|
}
|
|
@@ -20,6 +20,7 @@ export * from "./graphs/donut";
|
|
|
20
20
|
export * from "./graphs/skeleton";
|
|
21
21
|
export * from "./graphs/skeleton-lines";
|
|
22
22
|
export * from "./graphs/treemap";
|
|
23
|
+
export * from "./graphs/radar";
|
|
23
24
|
export * from "./layout/spacer";
|
|
24
25
|
export * from "./layout/layout";
|
|
25
26
|
export * from "./axes/two-dimensional-axes";
|
|
@@ -28,7 +29,7 @@ export * from "./axes/grid-brush";
|
|
|
28
29
|
export * from "./axes/chart-clip";
|
|
29
30
|
export * from "./axes/grid";
|
|
30
31
|
export * from "./axes/ruler";
|
|
31
|
-
export * from "./axes/ruler-stacked
|
|
32
|
+
export * from "./axes/ruler-stacked";
|
|
32
33
|
export * from "./axes/toolbar";
|
|
33
34
|
export * from "./axes/zero-line";
|
|
34
35
|
export * from "./axes/zoom-bar";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
|
|
2
2
|
/**
|
|
3
3
|
* Grid options
|
|
4
4
|
*/
|
|
@@ -28,6 +28,7 @@ export declare const options: {
|
|
|
28
28
|
meterChart: MeterChartOptions;
|
|
29
29
|
radarChart: RadarChartOptions;
|
|
30
30
|
gaugeChart: GaugeChartOptions;
|
|
31
|
+
comboChart: ComboChartOptions;
|
|
31
32
|
treemapChart: TreemapChartOptions;
|
|
32
33
|
};
|
|
33
34
|
export * from "./configuration-non-customizable";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GaugeTypes, Statuses, ArrowDirections, Alignments } from "./enums";
|
|
1
|
+
import { GaugeTypes, Statuses, ArrowDirections, Alignments, ChartTypes } from "./enums";
|
|
2
2
|
import { LegendOptions, TooltipOptions, GridOptions, AxesOptions, ZoomBarsOptions } from "./index";
|
|
3
3
|
import { BarOptions, StackedBarOptions } from "./components";
|
|
4
4
|
import { TimeScaleOptions } from "./axis-scales";
|
|
@@ -271,7 +271,16 @@ export interface RadarChartOptions extends BaseChartOptions {
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
|
-
* options specific to
|
|
274
|
+
* options specific to combo bar charts
|
|
275
275
|
*/
|
|
276
|
+
export interface ComboChartOptions extends AxisChartOptions {
|
|
277
|
+
comboChartTypes?: {
|
|
278
|
+
[ChartTypes.LINE]?: [];
|
|
279
|
+
[ChartTypes.STACKED_BAR]?: [];
|
|
280
|
+
[ChartTypes.GROUPED_BAR]?: [];
|
|
281
|
+
[ChartTypes.SIMPLE_BAR]?: [];
|
|
282
|
+
[ChartTypes.SCATTER]?: [];
|
|
283
|
+
};
|
|
284
|
+
}
|
|
276
285
|
export interface TreemapChartOptions extends BaseChartOptions {
|
|
277
286
|
}
|
|
@@ -161,6 +161,18 @@ export declare enum TickRotations {
|
|
|
161
161
|
AUTO = "auto",
|
|
162
162
|
NEVER = "never"
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* enum of chartTypes that work with combo chart
|
|
166
|
+
*/
|
|
167
|
+
export declare enum ChartTypes {
|
|
168
|
+
SCATTER = "scatter",
|
|
169
|
+
LINE = "line",
|
|
170
|
+
SIMPLE_BAR = "simple-bar",
|
|
171
|
+
STACKED_BAR = "stacked-bar",
|
|
172
|
+
GROUPED_BAR = "grouped-bar",
|
|
173
|
+
AREA = "area",
|
|
174
|
+
STACKED_AREA = "stacked-area"
|
|
175
|
+
}
|
|
164
176
|
/**
|
|
165
177
|
* enum of supported toolbar control types
|
|
166
178
|
*/
|
package/build/src/model.d.ts
CHANGED
|
@@ -17,8 +17,14 @@ export declare class ChartModel {
|
|
|
17
17
|
protected colorScale: any;
|
|
18
18
|
protected colorClassNames: any;
|
|
19
19
|
constructor(services: any);
|
|
20
|
-
getAllDataFromDomain(): any;
|
|
21
|
-
|
|
20
|
+
getAllDataFromDomain(groups?: any): any;
|
|
21
|
+
/**
|
|
22
|
+
* Charts that have group configs passed into them, only want to retrieve the display data relevant to that chart
|
|
23
|
+
* @param groups the included datasets for the particular chart
|
|
24
|
+
*/
|
|
25
|
+
getDisplayData(groups?: any): any;
|
|
26
|
+
setStackedGroups(groups: any): void;
|
|
27
|
+
getStackedGroups(): any;
|
|
22
28
|
getData(): any;
|
|
23
29
|
isDataEmpty(): boolean;
|
|
24
30
|
/**
|
|
@@ -26,17 +32,18 @@ export declare class ChartModel {
|
|
|
26
32
|
* @param newData The new raw data to be set
|
|
27
33
|
*/
|
|
28
34
|
setData(newData: any): any;
|
|
29
|
-
getDataGroups(): any;
|
|
30
|
-
getActiveDataGroups(): any;
|
|
31
|
-
getDataGroupNames(): any;
|
|
32
|
-
getActiveDataGroupNames(): any;
|
|
33
|
-
getGroupedData(): {
|
|
35
|
+
getDataGroups(groups?: any): any;
|
|
36
|
+
getActiveDataGroups(groups?: any): any;
|
|
37
|
+
getDataGroupNames(groups?: any): any;
|
|
38
|
+
getActiveDataGroupNames(groups?: any): any;
|
|
39
|
+
getGroupedData(groups?: any): {
|
|
34
40
|
name: string;
|
|
35
41
|
data: any;
|
|
36
42
|
}[];
|
|
37
|
-
getDataValuesGroupedByKeys(): any;
|
|
38
|
-
getStackedData({ percentage }
|
|
39
|
-
percentage
|
|
43
|
+
getDataValuesGroupedByKeys(groups?: any): any;
|
|
44
|
+
getStackedData({ percentage, groups }: {
|
|
45
|
+
percentage?: boolean;
|
|
46
|
+
groups?: any;
|
|
40
47
|
}): any[][];
|
|
41
48
|
/**
|
|
42
49
|
* @return {Object} The chart's options
|
|
@@ -15,15 +15,25 @@ export declare class CartesianScales extends Service {
|
|
|
15
15
|
};
|
|
16
16
|
protected domainAxisPosition: AxisPositions;
|
|
17
17
|
protected rangeAxisPosition: AxisPositions;
|
|
18
|
+
protected secondaryDomainAxisPosition: AxisPositions;
|
|
19
|
+
protected secondaryRangeAxisPosition: AxisPositions;
|
|
20
|
+
protected dualAxes: Boolean;
|
|
18
21
|
protected orientation: CartesianOrientations;
|
|
19
|
-
getDomainAxisPosition(
|
|
20
|
-
|
|
22
|
+
getDomainAxisPosition({ datum }?: {
|
|
23
|
+
datum?: any;
|
|
24
|
+
}): AxisPositions;
|
|
25
|
+
getRangeAxisPosition({ datum, groups }?: {
|
|
26
|
+
datum?: any;
|
|
27
|
+
groups?: any;
|
|
28
|
+
}): AxisPositions;
|
|
21
29
|
getAxisOptions(position: AxisPositions): any;
|
|
22
30
|
getDomainAxisOptions(): any;
|
|
23
31
|
getRangeAxisOptions(): any;
|
|
24
32
|
update(animate?: boolean): void;
|
|
25
33
|
findDomainAndRangeAxes(): void;
|
|
26
34
|
determineOrientation(): void;
|
|
35
|
+
isDualAxes(): Boolean;
|
|
36
|
+
determineAxisDuality(): void;
|
|
27
37
|
getOrientation(): CartesianOrientations;
|
|
28
38
|
getScaleByPosition(axisPosition: AxisPositions): any;
|
|
29
39
|
getScaleTypeByPosition(axisPosition: AxisPositions): any;
|
|
@@ -41,14 +51,22 @@ export declare class CartesianScales extends Service {
|
|
|
41
51
|
getRangeValue(d: any, i: any): any;
|
|
42
52
|
getMainXScaleType(): any;
|
|
43
53
|
getMainYScaleType(): any;
|
|
44
|
-
getDomainIdentifier(): any;
|
|
45
|
-
getRangeIdentifier(): any;
|
|
54
|
+
getDomainIdentifier(datum?: any): any;
|
|
55
|
+
getRangeIdentifier(datum?: any): any;
|
|
46
56
|
extendsDomain(axisPosition: AxisPositions, domain: any): number[] | Date[];
|
|
47
|
-
protected
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
protected findVerticalAxesPositions(): {
|
|
58
|
+
primary: AxisPositions;
|
|
59
|
+
secondary: AxisPositions;
|
|
60
|
+
};
|
|
61
|
+
protected findHorizontalAxesPositions(): {
|
|
62
|
+
primary: AxisPositions;
|
|
63
|
+
secondary: AxisPositions;
|
|
64
|
+
};
|
|
65
|
+
protected findDomainAndRangeAxesPositions(verticalAxesPositions: any, horizontalAxesPositions: any): {
|
|
66
|
+
primaryDomainAxisPosition: any;
|
|
67
|
+
secondaryDomainAxisPosition: any;
|
|
68
|
+
primaryRangeAxisPosition: any;
|
|
69
|
+
secondaryRangeAxisPosition: any;
|
|
52
70
|
};
|
|
53
71
|
protected getScaleDomain(axisPosition: AxisPositions): any;
|
|
54
72
|
protected createScale(axisPosition: AxisPositions): any;
|
package/build/src/tools.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export declare namespace Tools {
|
|
|
6
6
|
export const merge: any;
|
|
7
7
|
export const removeArrayDuplicates: any;
|
|
8
8
|
export const clamp: any;
|
|
9
|
+
export const flatten: any;
|
|
10
|
+
export const camelCase: any;
|
|
9
11
|
export const isEmpty: any;
|
|
10
12
|
export const isEqual: any;
|
|
11
13
|
export const flatMapDeep: any;
|
|
@@ -2,6 +2,8 @@ export * from "./getting-started/angular";
|
|
|
2
2
|
export * from "./getting-started/react";
|
|
3
3
|
export * from "./getting-started/vue";
|
|
4
4
|
export * from "./getting-started/vanilla";
|
|
5
|
+
export * from "./api";
|
|
5
6
|
export * from "./tabular-data-format";
|
|
7
|
+
export * from "./themes";
|
|
6
8
|
export * from "./event-listeners";
|
|
7
9
|
export * from "./color-palette";
|
package/build/stories/utils.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
export declare const addControls: (container: any, chart: any) => void;
|
|
2
|
-
export declare const addRadioButtonEventListeners:
|
|
3
|
-
(container: any): void;
|
|
4
|
-
displayName: string;
|
|
5
|
-
__docgenInfo: {
|
|
6
|
-
"description": string;
|
|
7
|
-
"displayName": string;
|
|
8
|
-
"props": {};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
2
|
+
export declare const addRadioButtonEventListeners: (container: any, chart: any) => void;
|
|
11
3
|
/**
|
|
12
4
|
* Generates random data going backwards from now once a minute
|
|
13
5
|
* @param {number} quantity number of data points to create
|