Reincharts
    Preparing search index...

    Hierarchy

    Index

    Constructors

    Properties

    context: ChartCanvasContextType<number | Date>

    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<ChartCanvasContextType<number | Date>> = ChartCanvasContext

    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: {
        customX: (props: CrossHairCursorProps, moreProps: any) => any;
        snapX: boolean;
        strokeDasharray: string;
        strokeStyle: string;
        strokeWidth: number;
    } = ...

    Methods

    • Parameters

      Returns
          | undefined
          | (
              | {
                  strokeDasharray: undefined
                  | strokeDashTypes;
                  strokeStyle: string;
                  strokeWidth: number;
                  x1: number;
                  x2: any;
                  y1: any;
                  y2: any;
              }
              | {
                  strokeDasharray: undefined
                  | strokeDashTypes;
                  strokeStyle: string;
                  strokeWidth: number;
                  x1: any;
                  x2: any;
                  y1: number;
                  y2: any;
              }
          )[]