mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
73438d505c
@ -83,6 +83,20 @@ export class DualAxes extends G2PlotChart {
|
||||
return {
|
||||
type: 'line',
|
||||
yField,
|
||||
tooltip: {
|
||||
items: [
|
||||
(data: any) => {
|
||||
const { [yField]: y } = data;
|
||||
const yFieldProps = fieldProps[yField];
|
||||
const name = yFieldProps?.label || yField;
|
||||
const value = yFieldProps?.transformer ? yFieldProps.transformer(y) : y;
|
||||
return {
|
||||
name,
|
||||
value,
|
||||
};
|
||||
},
|
||||
],
|
||||
},
|
||||
colorField: () => {
|
||||
const props = fieldProps[yField];
|
||||
return props?.label || yField;
|
||||
|
Loading…
x
Reference in New Issue
Block a user