Reincharts
    Preparing search index...

    Hierarchy

    Index

    Constructors

    • Parameters

      Returns YAxis

    • Parameters

      Returns YAxis

    Properties

    context: ChartContextType

    If using React Context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

    static contextType = MyContext
    // For TS pre-3.7:
    context!: React.ContextType<typeof MyContext>
    // For TS 3.7 and above:
    declare context: React.ContextType<typeof MyContext>
    contextType: Context<ChartContextType> = ChartContext

    If set, this.context will be set at runtime to the current value of the given Context.

    type MyContext = number
    const Ctx = React.createContext<MyContext>(0)

    class Foo extends React.Component {
    static contextType = Ctx
    context!: React.ContextType<typeof Ctx>
    render () {
    return <>My context's value: {this.context}</>;
    }
    }
    defaultProps: {
        axisAt: string;
        className: string;
        domainClassName: string;
        fontFamily: string;
        fontSize: number;
        fontWeight: number;
        getMouseDelta: (
            startXY: [number, number],
            mouseXY: [number, number],
        ) => number;
        gridLinesStrokeStyle: string;
        gridLinesStrokeWidth: number;
        innerTickSize: number;
        orient: string;
        outerTickSize: number;
        showDomain: boolean;
        showGridLines: boolean;
        showTickLabel: boolean;
        showTicks: boolean;
        strokeStyle: string;
        strokeWidth: number;
        tickLabelFill: string;
        tickPadding: number;
        tickStrokeStyle: string;
        yZoomWidth: number;
        zoomCursorClassName: string;
        zoomEnabled: boolean;
    } = ...

    Methods

    • Returns {
          bg: { h: number; w: number; x: number; y: number };
          getScale: (moreProps: any) => any;
          range: number[];
          ticks: number;
          transform: number[];
          zoomEnabled: boolean;
      }