@axdspub/axiom-charts 0.0.49 → 0.0.51
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/craco.config.js +7 -5
- package/library/Libraries/axiom/index.js +248 -51
- package/library/Libraries/axiom/index.js.map +1 -1
- package/library/axiom-charts.d.ts +21 -2
- package/library/browser.js +7500 -24
- package/library/browser.js.map +1 -1
- package/library/cjs.js +7500 -24
- package/library/cjs.js.map +1 -1
- package/library/index.js +7496 -21
- package/library/index.js.map +1 -1
- package/package.json +18 -13
- package/tsconfig.paths.json +3 -0
|
@@ -22,6 +22,11 @@ interface IChartAxis {
|
|
|
22
22
|
y?: number;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
+
interface IChartAxisOverrides {
|
|
26
|
+
domain?: IChartDimensionDomain;
|
|
27
|
+
ticks?: string[] | number[];
|
|
28
|
+
tickFormat?: (d: any, i: number) => string;
|
|
29
|
+
}
|
|
25
30
|
declare enum EChartAxes {
|
|
26
31
|
x = "x",
|
|
27
32
|
y = "y",
|
|
@@ -78,6 +83,7 @@ declare enum EPlotTypes {
|
|
|
78
83
|
scatter = "scatter",
|
|
79
84
|
box = "box",
|
|
80
85
|
bar = "bar",
|
|
86
|
+
time_series_bar = "time_series_bar",
|
|
81
87
|
stacked = "stacked",
|
|
82
88
|
anomaly = "anomaly",
|
|
83
89
|
curtain = "curtain",
|
|
@@ -95,6 +101,7 @@ interface IPlotStyle {
|
|
|
95
101
|
radius?: number;
|
|
96
102
|
colors?: string[];
|
|
97
103
|
}
|
|
104
|
+
type IPlotLineInterpolate = 'step' | 'cardinal' | 'catmullRom' | 'monotone' | 'natural' | 'none' | undefined;
|
|
98
105
|
interface IPlot extends IRequestItemProps {
|
|
99
106
|
id: string;
|
|
100
107
|
type: EPlotTypes;
|
|
@@ -102,6 +109,7 @@ interface IPlot extends IRequestItemProps {
|
|
|
102
109
|
data?: IDataResult;
|
|
103
110
|
axes?: IChartAxes;
|
|
104
111
|
style?: IPlotStyle;
|
|
112
|
+
interpolate?: IPlotLineInterpolate;
|
|
105
113
|
scrubbing?: boolean;
|
|
106
114
|
scrubSettings?: IPlotScrubSettings;
|
|
107
115
|
onDataLoad?: (event: IPlotDataLoadEvent) => void;
|
|
@@ -164,7 +172,7 @@ interface IChartSettings {
|
|
|
164
172
|
width: number | 'auto';
|
|
165
173
|
height: number;
|
|
166
174
|
layout?: 'radial' | 'windrose' | 'timeseries' | undefined;
|
|
167
|
-
axes?:
|
|
175
|
+
axes?: Record<string, IChartAxisOverrides>;
|
|
168
176
|
}
|
|
169
177
|
interface IChart {
|
|
170
178
|
settings: IChartSettings;
|
|
@@ -227,6 +235,7 @@ declare class ChartRoot implements IChartImplementation {
|
|
|
227
235
|
protected getXRange(chartWidth: number): [number, number];
|
|
228
236
|
protected getYRange(chartHeight: number): [number, number];
|
|
229
237
|
getChartWidth(): number;
|
|
238
|
+
protected getXAxesGroups(): IPlotImplementationGroups;
|
|
230
239
|
protected getChartHeight(): number;
|
|
231
240
|
protected getYAxesWidth(): number;
|
|
232
241
|
private debouncedResize;
|
|
@@ -262,4 +271,14 @@ interface ILegendProps {
|
|
|
262
271
|
}
|
|
263
272
|
declare const Legend: ({ plotLegends, style }: ILegendProps) => ReactElement;
|
|
264
273
|
|
|
265
|
-
|
|
274
|
+
type ISensorTimeBins = 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
275
|
+
interface ISensorProps {
|
|
276
|
+
parameterGroupId?: number | string;
|
|
277
|
+
stationId: number | string;
|
|
278
|
+
deviceIds?: number[] | string[];
|
|
279
|
+
timeBin?: ISensorTimeBins;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
declare const SensorPlotDisplay: (props: ISensorProps) => ReactElement;
|
|
283
|
+
|
|
284
|
+
export { SensorPlotDisplay as AxiomSensorPlot, AxiomChartComponent as Chart, ChartRoot, EChartAxes, EPlotTypes, IChart, IChartAxes, IChartAxis, IChartAxisOverrides, IChartDimension, IChartDimensionAccessor, IChartDimensionDomain, IChartDimensionParameter, IChartDimensions, IChartImplementation, IChartImplementationProps, IChartLibrary, IChartScale, IChartSettings, ILegendItem, INumericRange, INumericScale, IPlot, IPlotAxisSetting, IPlotAxisSettings, IPlotData, IPlotDataAccessors, IPlotDataLoadEvent, IPlotImplementation, IPlotImplementationGroup, IPlotImplementationGroups, IPlotImplementationProps, IPlotLegendSettings, IPlotLegends, IPlotLineInterpolate, IPlotScrubEvent, IPlotScrubSettings, IPlotScrubs, IPlotStyle, IPlotTypes, Legend, Popup, RadialChartRoot };
|