mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 16:03:59 +00:00
SYNC: data label formatter
This commit is contained in:
committed by
Diflow
parent
cd7800056c
commit
9c1d330945
@@ -7,6 +7,7 @@ export type ChartXTransformFunction =
|
|||||||
| 'date:month'
|
| 'date:month'
|
||||||
| 'date:year';
|
| 'date:year';
|
||||||
export type ChartYAggregateFunction = 'sum' | 'first' | 'last' | 'min' | 'max' | 'count' | 'avg';
|
export type ChartYAggregateFunction = 'sum' | 'first' | 'last' | 'min' | 'max' | 'count' | 'avg';
|
||||||
|
export type ChartDataLabelFormatter = 'number' | 'size:bytes' | 'size:kb' | 'size:mb' | 'size:gb';
|
||||||
|
|
||||||
export const ChartConstDefaults = {
|
export const ChartConstDefaults = {
|
||||||
sortOrder: ' asc',
|
sortOrder: ' asc',
|
||||||
@@ -51,6 +52,7 @@ export interface ChartDefinition {
|
|||||||
ydefs: ChartYFieldDefinition[];
|
ydefs: ChartYFieldDefinition[];
|
||||||
|
|
||||||
useDataLabels?: boolean;
|
useDataLabels?: boolean;
|
||||||
|
dataLabelFormatter?: ChartDataLabelFormatter;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChartDateParsed {
|
export interface ChartDateParsed {
|
||||||
|
|||||||
Reference in New Issue
Block a user