Perseus
    Preparing search index...

    Type Alias PerseusPlotterWidgetOptions

    Options for the plotter widget. A bar, line, histogram, or dot plot.

    type PerseusPlotterWidgetOptions = {
        categories: string[];
        correct: number[];
        labelInterval?: number | null;
        labels: string[];
        maxY: number;
        picBoxHeight?: number | null;
        picSize?: number | null;
        picUrl?: string | null;
        plotDimensions: number[];
        scaleY: number;
        snapsPerLine: number;
        starting: number[];
        type: PlotType;
    }
    Index

    Properties

    categories: string[]

    Translatable Text; Categories to display along the X axis. e.g. [">0", ">6", ">12", ">18"]

    correct: number[]

    The Y values that represent the correct answer expected

    labelInterval?: number | null

    Which ticks to display the labels for. For instance, setting this to "4" will only show every 4th label (plus the last one)

    labels: string[]

    Translatable Text; The Axis labels. e.g. ["X Label", "Y Label"]

    maxY: number

    The maximum Y tick to display in the graph

    picBoxHeight?: number | null
    picSize?: number | null
    picUrl?: string | null

    A picture to represent items in a graph.

    plotDimensions: number[]
    scaleY: number

    The scale of the Y Axis

    snapsPerLine: number

    Creates the specified number of divisions between the horizontal lines. Fewer snaps between lines makes the graph easier for the student to create correctly.

    starting: number[]

    The Y values the graph should start with

    type: PlotType

    The type of the graph. options "bar", "line", "pic", "histogram", "dotplot"