@vizzly/dashboard 0.14.4-dev-24f9cd0bb1a4c71a63f54ca0536be5df044db3a4 → 0.14.4-dev-e92d7e73ad10f9a39cbd6f8d0ebbd4f8db295c86
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/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +5 -3
- package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +5 -33
- package/dist/charts/src/v2/components/Legend/Legend.d.ts +8 -7
- package/dist/charts/src/v2/components/hooks/useBottomAxisBaselineShift.d.ts +10 -0
- package/dist/charts/src/v2/constants/BORDER_RADIUS.d.ts +1 -0
- package/dist/charts/src/v2/utils/buildMargin.d.ts +1 -1
- package/dist/charts/src/v2/utils/components/BarGroup.d.ts +24 -0
- package/dist/charts/src/v2/utils/components/BarStacked.d.ts +18 -0
- package/dist/dashboard.cjs.development.js +423 -261
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +427 -265
- package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +1 -1
- package/package.json +3 -3
- package/dist/shared-logic/src/BubbleChart/adjustTicks.d.ts +0 -3
- package/dist/shared-logic/src/ChartsV2/getAxisFormattingFunction.d.ts +0 -13
- package/dist/shared-logic/src/ChartsV2/getMinAndMax.d.ts +0 -15
- package/dist/shared-logic/src/ChartsV2/getScaleAndTicks.d.ts +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseChartRepresentation, Tick } from './types';
|
|
2
|
-
export declare const ASSUMED_AVERAGE_CHAR_WIDTH =
|
|
2
|
+
export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 4;
|
|
3
3
|
export declare function howManyTicksFitInWidth(ticks: Tick<string | Number | Date>[], maxWidth: number, avgCharWidth?: number): number;
|
|
4
4
|
export declare function howManyTicksFitInHeight(ticks: Tick<string | number | Date>[], height: number): number | undefined;
|
|
5
5
|
export declare function pickEquallySpaced(arr: Tick<string | Number | Date>[], numPicks: number): Tick<string | Number | Date>[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.14.4-dev-
|
|
4
|
+
"version": "0.14.4-dev-e92d7e73ad10f9a39cbd6f8d0ebbd4f8db295c86",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@visx/visx": "^3.10.2",
|
|
56
56
|
"@vizzly/api-client": "0.0.45",
|
|
57
57
|
"@vizzly/joi": "^17.7.0",
|
|
58
|
-
"@vizzly/semantic-layer-public": "0.0.
|
|
59
|
-
"@vizzly/sqlbuilder-public": "0.1.
|
|
58
|
+
"@vizzly/semantic-layer-public": "0.0.227",
|
|
59
|
+
"@vizzly/sqlbuilder-public": "0.1.30",
|
|
60
60
|
"chroma-js": "2.4.2",
|
|
61
61
|
"copy-to-clipboard": "^3.3.3",
|
|
62
62
|
"cross-fetch": "^4.0.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DateTimeFormatter, NumberFormatter } from '../ChartsV2/types';
|
|
2
|
-
import { FormatType } from '../Component/types';
|
|
3
|
-
interface getAxisFormattingFunctionArgs {
|
|
4
|
-
numberFormatOptions: {
|
|
5
|
-
[id: string]: NumberFormatter;
|
|
6
|
-
};
|
|
7
|
-
dateTimeFormatOptions: {
|
|
8
|
-
[id: string]: DateTimeFormatter;
|
|
9
|
-
};
|
|
10
|
-
formatFunctionId: FormatType;
|
|
11
|
-
}
|
|
12
|
-
export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((date: Date) => string) | ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((value: string) => string);
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GoalLine } from '../ChartsV2/types';
|
|
2
|
-
import { DataType } from '../Field/types';
|
|
3
|
-
import { FormattedResult } from '../Result/types';
|
|
4
|
-
export declare const getMinAndMax: ({ data, keys, dataType, goalLines, }: {
|
|
5
|
-
data: FormattedResult['contentMapped'];
|
|
6
|
-
keys: Array<string>;
|
|
7
|
-
dataType: DataType;
|
|
8
|
-
goalLines?: GoalLine[] | undefined;
|
|
9
|
-
}) => {
|
|
10
|
-
max: null;
|
|
11
|
-
min: null;
|
|
12
|
-
} | {
|
|
13
|
-
max: number;
|
|
14
|
-
min: number;
|
|
15
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
2
|
-
import { DataType } from '../Field/types';
|
|
3
|
-
import { FormattedResult } from '../Result/types';
|
|
4
|
-
import { GoalLine, KeyId, Tick } from '../ChartsV2/types';
|
|
5
|
-
declare type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
6
|
-
interface getScaleAndTicksArgs {
|
|
7
|
-
data: FormattedResult['contentMapped'];
|
|
8
|
-
xKey: string | null;
|
|
9
|
-
xScaleDataType: DataType;
|
|
10
|
-
yKeys: string[];
|
|
11
|
-
nullValue: string | undefined;
|
|
12
|
-
tickCountYAxis: number;
|
|
13
|
-
formattingFunctionX: FormattingFunction;
|
|
14
|
-
formattingFunctionY: FormattingFunction;
|
|
15
|
-
order: QueryAttributes.Order[];
|
|
16
|
-
goalLines: GoalLine[];
|
|
17
|
-
}
|
|
18
|
-
interface getScaleAndTicksReturn {
|
|
19
|
-
x: {
|
|
20
|
-
ticks: Array<Tick<Date | string | number>>;
|
|
21
|
-
scale: {
|
|
22
|
-
max: number | Date | null;
|
|
23
|
-
min: number | Date | null;
|
|
24
|
-
key: KeyId | null;
|
|
25
|
-
ordering: 'asc' | 'desc' | null;
|
|
26
|
-
dataType: DataType;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
y: {
|
|
30
|
-
ticks: Array<Tick<number>>;
|
|
31
|
-
scale: {
|
|
32
|
-
max: number;
|
|
33
|
-
min: number;
|
|
34
|
-
key: null;
|
|
35
|
-
ordering: 'asc' | 'desc';
|
|
36
|
-
dataType: 'number';
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
|
|
41
|
-
export {};
|