@graphique/geom-hline
For drawing horizontal lines in Graphique.
Install
npm install @graphique/geom-hline # @graphique/graphique is a peer dependencyExamples
Basics
Geom-level data
API
GeomPropsinterface
| name | description | 
|---|---|
data? | data used by this Geom This will overwrite top-level  Datum[] | 
aes? | functional mapping applied to  This extends the top-level  GeomAes | 
attr? | attributes passed to the underlying SVG elements React.SVGAttributes | 
showTooltip? | should this Geom have a tooltip associated with it (default:  boolean | 
onDatumFocus? | callback called for mousemove events on the drawing area when focusing data (data: Datum[], index: number[]) => void | 
onDatumSelection? | callback called for click events on the drawing area when selecting focused data (data: Datum[], index: number[]) => void | 
onExit? | callback called for mouseleave events on the drawing area () => void | 
isAnimated? | should elements enter/update/exit with animated transitions (default:  boolean |