mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
73438d505c
@ -83,6 +83,20 @@ export class DualAxes extends G2PlotChart {
|
|||||||
return {
|
return {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
yField,
|
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: () => {
|
colorField: () => {
|
||||||
const props = fieldProps[yField];
|
const props = fieldProps[yField];
|
||||||
return props?.label || yField;
|
return props?.label || yField;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user