Manta Developers
GitHub
Menu

@manta-eu/react/with-without

Reference for @manta-eu/react/with-without as it is on main.

Type Aliases

WithWithoutChartProps

WithWithoutChartProps = object

Properties

changeLabel?

optional changeLabel?: string

className?

optional className?: string

curve?

optional curve?: "monotone" | "linear"

data

data: WithWithoutPoint[]

One point per x: measured up to Today, expected after it, and without wherever a real baseline gives one.

expectedLabel?

optional expectedLabel?: string

formatDetail?

optional formatDetail?: (value) => string

Parameters
value

number

Returns

string

formatGain?

optional formatGain?: (gain) => string

Parameters
gain

number

Returns

string

formatValue?

optional formatValue?: (value) => string

Parameters
value

number

Returns

string

formatX?

optional formatX?: (x) => string

Parameters
x

string | number

Returns

string

gainLabel?

optional gainLabel?: string

height?

optional height?: number

label

label: string

legend?

optional legend?: "top" | "bottom" | false

Where the legend goes; false leaves it out.

lowerIsBetter?

optional lowerIsBetter?: boolean

measuredLabel?

optional measuredLabel?: string

period?

optional period?: string

title?

optional title?: string

today

today: string | number

verdict?

optional verdict?: WithWithoutVerdict

withLabel?

optional withLabel?: string

withoutLabel?

optional withoutLabel?: string

xType?

optional xType?: "category" | "number"


WithWithoutPoint

WithWithoutPoint = object

Properties

expected?

optional expected?: number | null

measured?

optional measured?: number | null

without?

optional without?: number | null

x

x: string | number


WithWithoutVerdict

WithWithoutVerdict = object

Properties

label

label: string

met

met: boolean

Functions

gainWords()

gainWords(gain, format, period?): string

Parameters

gain

number

format

(value) => string

period?

string

Returns

string


WithWithoutChart()

WithWithoutChart(props): Element

Parameters

props

WithWithoutChartProps

Returns

Element