@nocobase/plugin-data-visualization 2.0.0-alpha.59 → 2.0.0-alpha.60

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.
@@ -8,6 +8,7 @@
8
8
  */
9
9
  export declare function getFieldOptions(dm: any, compile: (v: any) => string, collectionPath?: string[]): any;
10
10
  export declare function aliasOf(val: any): string;
11
+ export declare function buildOrderFieldOptions(fieldOptions?: any[], dimensionsValue?: any[], measuresValue?: any[]): any[];
11
12
  export declare function getFormatterOptionsByField(dm: any, collectionPath: string[] | undefined, dimField: any): {
12
13
  label: string;
13
14
  value: string;
@@ -17,6 +17,11 @@ export declare function convertDatasetFormats(data: Record<string, any>[]): {
17
17
  rows: string[][];
18
18
  columns: any[][];
19
19
  };
20
+ /**
21
+ * Normalize ECharts option for dataset-based pie charts.
22
+ * Fixes `{c}` showing `[object Object]` when `dataset.source` is an array of objects by rewriting `{c}` to `{@<valueField>}`.
23
+ */
24
+ export declare function normalizeEChartsOption(option: any): any;
20
25
  export declare const formatters: {
21
26
  datetime: {
22
27
  label: string;