Chart primitives
Layouts & specialized
Interactions
Data utilities
Umbrella package
@vx/glyph
Glyphs are small marks or symbols that you can use in your charts. Example: https://vx-demo.now.sh/glyphs
Installation
npm install --save @vx/glyphExamples
<Glyph.GlyphDot />
<Legend />
Components
<Glyph /><GlyphCircle /><GlyphCross /><GlyphDiamond /><GlyphDot /><GlyphSquare /><GlyphStar /><GlyphTriangle /><GlyphWye />
APIs
#<Glyph />
Children to render.
classname to apply to glyph g element container.
Left offset to apply to glyph g element container.
Default 0
Top offset to apply to glyph g element container.
Default 0
#<GlyphCircle />
Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of circle in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.
#<GlyphCross />
Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of cross in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.
#<GlyphDiamond />
Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of diamond in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.
#<GlyphDot />
classname to apply to glyph path element.
x coordinate of the center of the dot.
y coordinate of the center of the dot.
Left offset to apply to glyph g element container.
Default 0
Radius of dot.
Top offset to apply to glyph g element container.
Default 0
#<GlyphSquare />
Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of square in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.
#<GlyphStar />
Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of star in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.
#<GlyphTriangle />
(({ path }: { path: Symbol<any, Datum>; }) => ReactNode) | undefinedoptional Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of triangle in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.
#<GlyphWye />
Render function override which is passed the configured path generator.
classname to apply to glyph path element.
Left offset to apply to glyph g element container.
Size of wye glyph in px, or an accessor which takes Datum as input and returns a size.
Top offset to apply to glyph g element container.