npm.nicfv.com

    Interface PsychartOptions

    Configuration options for Psychart.

    interface PsychartOptions {
        altitude: number;
        colors: { axis: string; font: string; regionGradient: PaletteName };
        dbMax: number;
        dbMin: number;
        dpMax: number;
        flipGradients: boolean;
        flipXY: boolean;
        font: { family: string; size: number };
        lineHeight: number;
        major: { humRat: number; relHum: number; temp: number };
        padding: Point;
        regions: RegionName[];
        resolution: number;
        showUnits: { axis: boolean; tooltip: boolean };
        size: Point;
        unitSystem: "IP" | "SI";
        yAxis: "hr" | "dp";
    }
    Index

    Properties

    altitude: number

    The altitude of measurements taken.

    colors: { axis: string; font: string; regionGradient: PaletteName }

    The default color settings for Psychart.

    Type declaration

    • Readonlyaxis: string

      The axis color as a hex-code string.

    • Readonlyfont: string

      The font color as a hex-code string.

    • ReadonlyregionGradient: PaletteName

      Defines the palette name used for region coloring.

    dbMax: number

    The maximum value on the dry bulb axis.

    dbMin: number

    The minimum value on the dry bulb axis.

    dpMax: number

    The maximum value on the dew point axis.

    flipGradients: boolean

    Optinally reverse gradients, making more/less saturated points appear on opposite ends.

    flipXY: boolean

    Determine whether to render a Mollier diagram.

    font: { family: string; size: number }

    Details for the font used in Psychart.

    Type declaration

    • Readonlyfamily: string

      The name of the font.

    • Readonlysize: number

      The font size, in pixels.

    lineHeight: number

    The spacing factor between entries in the legend.

    major: { humRat: number; relHum: number; temp: number }

    The major axis intervals for different units.

    Type declaration

    • ReadonlyhumRat: number

      Humidity Ratio

    • ReadonlyrelHum: number

      Relative Humidity

    • Readonlytemp: number

      Temperature

    padding: Point

    The padding in pixels.

    regions: RegionName[]

    Render pre-defined shaded regions.

    resolution: number

    The chart resolution, in units.

    showUnits: { axis: boolean; tooltip: boolean }

    Determine where to show units.

    Type declaration

    • Readonlyaxis: boolean

      Show units on the axes.

    • Readonlytooltip: boolean

      Show units on the tooltips.

    size: Point

    The outer size of Psychart, in pixels.

    unitSystem: "IP" | "SI"

    Represents the unit system, in either US (IP) or metric (SI)

    yAxis: "hr" | "dp"

    Defines whether to use dew point or humidity ratio on the Y-axis.

    MMNEPVFCICPMFPCPTTAAATR