@manta-eu/react/replay-chart
Reference for @manta-eu/react/replay-chart as it is on main.
Type Aliases
ReplayChartLabels
ReplayChartLabels =
object
Properties
ahead
ahead:
string
expected
expected:
string
moments
moments:
string
pause
pause:
string
play
play:
string
playAgain
playAgain:
string
playhead
playhead:
string
reached
reached:
string
today
today:
string
ReplayChartMoment
ReplayChartMoment =
object
Properties
id?
optionalid?:string
label
label:
string
x
x:
number
ReplayChartPoint
ReplayChartPoint =
object
Properties
baseline?
optionalbaseline?:number|null
The same measure without the plans; leave it out where there is none.
value
value:
number
x
x:
number
A time on a continuous scale, such as a timestamp; points come in time order.
ReplayChartProps
ReplayChartProps =
object
Properties
autoPlay?
optionalautoPlay?:boolean
Plays once the first time the chart is in view; never under reduced motion.
baselineLabel?
optionalbaselineLabel?:string
changeLabel?
optionalchangeLabel?:string
Follows the signed gap to the baseline: “+$2,664 with the plans”.
className?
optionalclassName?:string
data
data:
ReplayChartPoint[]
duration?
optionalduration?:number
Seconds a play from the start to the end takes.
expectedLabel?
optionalexpectedLabel?:string
formatDetail?
optionalformatDetail?: (value) =>string
Formats the readout’s and the hover card’s figures.
Parameters
value
number
Returns
string
formatValue?
optionalformatValue?: (value) =>string
Formats axis ticks.
Parameters
value
number
Returns
string
formatX
formatX: (
x) =>string
Parameters
x
number
Returns
string
gainLabel?
optionalgainLabel?:string
height?
optionalheight?:number
label
label:
string
labels?
optionallabels?:Partial<ReplayChartLabels>
moments?
optionalmoments?:ReplayChartMoment[]
Each shows once the playhead reaches it; choosing one moves the playhead there.
onMomentSelect?
optionalonMomentSelect?: (moment) =>void
Parameters
moment
Returns
void
seriesLabel?
optionalseriesLabel?:string
today?
optionaltoday?:number
The x of one of the points: the line is solid up to it and dotted after.
Functions
ReplayChart()
ReplayChart(
props):Element
Parameters
props
Returns
Element