Reincharts
    Preparing search index...

    Hierarchy

    Index

    Constructors

    Properties

    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: {
        background: { fillStyle: string };
        backgroundShapeCanvas: (
            props: HoverTooltipProps,
            __namedParameters: { height: number; width: number },
            ctx: CanvasRenderingContext2D,
        ) => void;
        fontFamily: string;
        fontFill: string;
        fontSize: number;
        origin: (
            props: HoverTooltipProps,
            moreProps: any,
            bgSize: any,
            pointWidth: any,
        ) => any[];
        tooltipCanvas: (
            props: HoverTooltipProps,
            content: any,
            ctx: CanvasRenderingContext2D,
        ) => void;
        toolTipFillStyle: string;
        toolTipStrokeStyle: string;
        toolTipStrokeWidth: number;
    } = ...

    Methods

    • Parameters

      • ctx: CanvasRenderingContext2D
      • moreProps: any

      Returns
          | undefined
          | {
              bgSize: { height: any; width: any };
              centerX: any;
              content: {
                  x: string;
                  y: { label: string; stroke?: string; value?: string }[];
              };
              pointWidth: number;
              x: any;
              y: any;
          }