fix: wrong formatter of some charts in monitor (#137)
* fix: wrong formatter of some charts in monitor * chore: remove useless --------- Co-authored-by: yaojiping <yaojiping@infini.ltd>
This commit is contained in:
parent
50b8112670
commit
7922a42513
|
@ -239,7 +239,7 @@ export default (props) => {
|
||||||
ticks={item.ticks}
|
ticks={item.ticks}
|
||||||
labelFormat={getFormatter(
|
labelFormat={getFormatter(
|
||||||
item.formatType,
|
item.formatType,
|
||||||
fixFormat(item.formatType, item.labelFormat)
|
fixFormat(item.formatType, item.tickFormat)
|
||||||
)}
|
)}
|
||||||
tickFormat={getFormatter(
|
tickFormat={getFormatter(
|
||||||
item.formatType,
|
item.formatType,
|
||||||
|
@ -295,7 +295,7 @@ export default (props) => {
|
||||||
xAccessor={0}
|
xAccessor={0}
|
||||||
tickFormat={getFormatter(
|
tickFormat={getFormatter(
|
||||||
item.metric.formatType,
|
item.metric.formatType,
|
||||||
fixFormat(item.metric.formatType, item.metric.formatType),
|
fixFormat(item.metric.formatType, item.metric.format),
|
||||||
item.metric.units
|
item.metric.units
|
||||||
)}
|
)}
|
||||||
yAccessors={[1]}
|
yAccessors={[1]}
|
||||||
|
|
|
@ -268,7 +268,6 @@ class ClusterForm extends React.Component {
|
||||||
if (!values) {
|
if (!values) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
debugger
|
|
||||||
let newVals = {
|
let newVals = {
|
||||||
name: values.name,
|
name: values.name,
|
||||||
hosts: values.hosts,
|
hosts: values.hosts,
|
||||||
|
|
Loading…
Reference in New Issue