@manta-eu/react/with-without
Reference for @manta-eu/react/with-without as it is on main.
Type Aliases
WithWithoutChartProps
WithWithoutChartProps =
object
Properties
changeLabel?
optionalchangeLabel?:string
className?
optionalclassName?:string
curve?
optionalcurve?:"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?
optionalexpectedLabel?:string
formatDetail?
optionalformatDetail?: (value) =>string
Parameters
value
number
Returns
string
formatGain?
optionalformatGain?: (gain) =>string
Parameters
gain
number
Returns
string
formatValue?
optionalformatValue?: (value) =>string
Parameters
value
number
Returns
string
formatX?
optionalformatX?: (x) =>string
Parameters
x
string | number
Returns
string
gainLabel?
optionalgainLabel?:string
height?
optionalheight?:number
label
label:
string
legend?
optionallegend?:"top"|"bottom"|false
Where the legend goes; false leaves it out.
lowerIsBetter?
optionallowerIsBetter?:boolean
measuredLabel?
optionalmeasuredLabel?:string
period?
optionalperiod?:string
title?
optionaltitle?:string
today
today:
string|number
verdict?
optionalverdict?:WithWithoutVerdict
withLabel?
optionalwithLabel?:string
withoutLabel?
optionalwithoutLabel?:string
xType?
optionalxType?:"category"|"number"
WithWithoutPoint
WithWithoutPoint =
object
Properties
expected?
optionalexpected?:number|null
measured?
optionalmeasured?:number|null
without?
optionalwithout?: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
Returns
Element