@devtable/dashboard 6.31.0 → 6.33.0

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.
@@ -1,7 +1,7 @@
1
1
  import { VizComponent } from '~/types/plugin';
2
2
  import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
3
3
  export declare class VizBoxplotChartMigrator extends VersionBasedMigrator {
4
- readonly VERSION = 3;
4
+ readonly VERSION = 4;
5
5
  configVersions(): void;
6
6
  }
7
7
  export declare const BoxplotChartVizComponent: VizComponent;
@@ -25,6 +25,10 @@ export declare function getOption({ config, data, variables }: IGetOption): {
25
25
  show: boolean;
26
26
  alignWithLabel: boolean;
27
27
  };
28
+ axisLabel: {
29
+ formatter: (value: string | number, index: number) => any;
30
+ rotate: number;
31
+ };
28
32
  }[];
29
33
  yAxis: {
30
34
  name: string;
@@ -1,4 +1,5 @@
1
1
  import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
2
+ import { IXAxisLabelFormatter } from '../cartesian/panel/x-axis/x-axis-label-formatter/types';
2
3
  export interface IBoxplotReferenceLine {
3
4
  name: string;
4
5
  template: string;
@@ -8,6 +9,10 @@ export interface IBoxplotChartConf {
8
9
  x_axis: {
9
10
  name: string;
10
11
  data_key: string;
12
+ axisLabel: {
13
+ rotate: number;
14
+ formatter: IXAxisLabelFormatter;
15
+ };
11
16
  };
12
17
  y_axis: {
13
18
  name: string;
@@ -1,3 +1,3 @@
1
- import { ICartesianChartConf } from '../type';
2
1
  import { ITemplateVariable } from '~/utils/template';
2
+ import { ICartesianChartConf } from '../type';
3
3
  export declare function getOption(conf: ICartesianChartConf, data: $TSFixMe[], variables: ITemplateVariable[]): any;
@@ -1,2 +1,2 @@
1
- import { ICartesianChartConf } from '../type';
2
- export declare function getLegend(conf: ICartesianChartConf): Record<string, any>;
1
+ import { IEchartsSeriesItem } from './utils/types';
2
+ export declare function getLegend(series: IEchartsSeriesItem[]): Record<string, any>;
@@ -1,5 +1,6 @@
1
- import { TopLevelFormatterParams } from 'echarts/types/dist/shared';
1
+ import { CallbackDataParams } from 'echarts/types/dist/shared';
2
2
  import { ICartesianChartConf } from '../type';
3
- export declare function getTooltip(conf: ICartesianChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
4
- formatter: (params: TopLevelFormatterParams) => string;
3
+ import { IEchartsSeriesItem } from './utils/types';
4
+ export declare function getTooltip(conf: ICartesianChartConf, series: IEchartsSeriesItem[], labelFormatters: Record<string, (p: $TSFixMe) => string>): {
5
+ formatter: (params: CallbackDataParams[]) => string;
5
6
  };
@@ -0,0 +1,2 @@
1
+ import { ICartesianChartConf } from '../../type';
2
+ export declare function getLabelFormatters(conf: ICartesianChartConf): Record<string, (params: $TSFixMe) => string>;
@@ -0,0 +1,8 @@
1
+ export declare type TEchartsSeriesType = 'line' | 'bar' | 'scatter';
2
+ export interface IEchartsSeriesItem {
3
+ name: string;
4
+ color?: string;
5
+ type: TEchartsSeriesType;
6
+ hide_in_legend: boolean;
7
+ yAxisIndex: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ import { AnyObject } from '~/types';
2
+ import { ITemplateVariable } from '~/utils/template';
3
+ export declare function getVariableValueMap(data: AnyObject[], variables: ITemplateVariable[]): Record<string, string | number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "6.31.0",
3
+ "version": "6.33.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",