Min/max rules
<Plot>
<Line
data={aapl}
x="Date"
y="Close"
strokeOpacity={0.5} />
<RuleY
stroke="var(--svp-blue)"
{...binX(
{
data: aapl,
x: 'Date',
y: 'Close'
},
{ y: 'max', interval: 'year' }
)} />
<RuleY
stroke="var(--svp-red)"
{...binX(
{
data: aapl,
x: 'Date',
y: 'Close'
},
{ y: 'min', interval: 'year' }
)} />
</Plot>