我正在实现图表框架Barchartview,我想自定义Yaxis,这是我的代码
import React, { Component, ComponentType } from 'react';
const withClass = <T extends object>(WrappedComponent: ComponentType<T>, className: string):
React.FunctionComponent<T> =>
(props: any) => (
<div className={className}>
<WrappedComponent {...props} />
</div>
);
export default withClass;
但是,上面的代码给了我Y轴,例如0 20 40 60 80100。我期望输出像0 25 50 75 100