!!!###!!!title=basic-mark——VisActor/VGrammar tutorial documents!!!###!!!!!!###!!!description=Basic marks in VGrammar describe a specific type of drawing shape.!!!###!!!

Basic Mark

Basic marks in VGrammar describe a specific type of drawing shape.

Group Mark (Group)

Group mark are used to group multiple primitives for unified operations such as scaling and translation. The graphic type is declared as 'group'.

It should be noted that group mark is different from other basic marks and do not support data mapping. A declared Group Mark can only correspond to a single final group graphic element.

Rectangle Mark (Rect)

Rectangle mark is used to draw rectangles and can create visualization effects such as bar charts. The graphic type is declared as 'rect'.

Rendering example of rectangle mark:

Arc Mark (Arc)

Arc mark s used to draw arcs and can create visualization effects such as pie charts and ring charts. The graphic type is declared as 'arc'.

Rendering example of arc mark:

Area Mark (Area)

Area mark is used to draw areas between closed curves and coordinate axes, creating visualization effects such as area charts. The graphic type is declared as 'area'.

Rendering example of area mark:

Line Mark (Line)

Line mark is used to draw lines and can create visualization effects such as line charts. The graphic type is declared as 'line'.

Rendering example of line mark:

Symbol Mark (Symbol)

Symbol mark is used to draw specific shapes such as circles and rectangles, and can create visualization effects like scatter plots. The graphic type is declared as 'symbol'.

Rendering example of symbol mark:

Path Mark (Path)

Path mark is used to draw arbitrary shapes of paths, creating visualization effects such as custom shapes and geographic trajectories. The graphic type is declared as 'path'.

Rule Mark (Rule)

Rule mark is used to draw straight lines and can create visualization effects such as guide lines and reference lines. The graphic type is declared as 'rule'.

Rendering example of rule mark:

Shape Mark (Shape)

Shape mark is used to draw custom shapes and can create visualization effects such as maps. The graphic type is declared as 'shape'.

Image Mark (Image)

Image mark is used to insert images in visualization scenes, creating visualization effects such as backgrounds and icons. The graphic type is declared as 'image'.

Text Mark (Text)

Text mark is used to draw text and can create visualization effects such as labels and titles. The graphic type is declared as 'text'.

Rendering example of text mark:

Rich Text Mark (Richtext)

Rich text mark is used to draw styled text and can create visualization effects such as highlights and links. The graphic type is declared as 'richtext'.

Rendering example of rich text mark:

Polygon Mark (Polygon)

Polygon mark is used to draw polygons and can create visualization effects such as funnel charts and convex hulls. The graphic type is declared as 'polygon'.

Rendering example of polygon mark:

3D Rectangle Mark (Rect3d)

3D rectangle mark is used to draw cuboids and can create visualization effects such as bar charts in 3D visualizations. The graphic type is declared as 'rect3d'.

Rendering example of 3D rectangle mark:

3D Arc Mark (Arc3d)

3D arc mark is used to draw cylinders and can create visualization effects such as pie charts and ring charts in 3D visualizations. The graphic type is declared as 'arc3d'.

Rendering example of 3D arc mark:

3D Pyramid Mark (Pyramid3d)

3D pyramid marks is used to draw pyramid-shaped hexahedrons and can create visualization effects such as funnel charts in 3D visualizations. The graphic type is declared as 'pyramid3d'.

Rendering example of 3D pyramid mark: