d.vect.chart(1grass)
π d.vect.chart β the GRASS manual but make it cute π
okay bestie, so d.vect.chart is a module from the GRASS User's Manual, and it's literally the chart-drawing queen. She Displays charts of vector data in the active frame on the graphics monitor. Periodt. πΈ
β¨ KEYWORDS β¨
display, cartography, chart maps π
π SYNOPSIS π
d.vect.chart
d.vect.chart --help
d.vect.chart [-clns3] map=name [type=string[,string,...]]
[layer=string] [chart_type=string] columns=name[,name,...]
[size_column=name] [size=integer] [scale=float]
[outline_color=name] [colors=name[,name,...]]
[max_ref=float[,float,...]] [legend_title=string]
[legend_symbol_size=integer] [--help] [--verbose] [--quiet] [--ui]
π Flags (the lil switches, iykyk)
-cβ Center the bar chart around a data point. She's centered, she's that girl. π-lβ Create legend information and send to stdout. Gossip, but make it a legend. π’-nβ Do not draw map, only output the legend information. Just the tea, no visuals. π«-sβ Do not show this layer in vector legend. She's mysterious. Not on the list. π-3β Create 3D charts. Depth, literally. π¦--helpβ Print usage summary.--verboseβ Verbose module output. She tells you EVERYTHING. π--quietβ Quiet module output. Shhh. π€«--uiβ Force launching GUI dialog. Pwetty buttons. β¨
π Parameters (the actual values you gotta feed her)
map=name[required] β Name of vector map. Or data source for direct OGR access.type=string[,string,...]β Input feature type.- Options:
point,line,boundary,centroid,area - Default:
point,line,boundary,centroid
- Options:
layer=stringβ Layer number or name. Vector features can have category values in different layers, and this number determines which layer to use. When used with direct OGR access this is the layer name.- Default:
1
- Default:
chart_type=stringβ Chart type.- Options:
pie,bar - Default:
pie
- Options:
columns=name[,name,...][required] β Attribute columns containing data.size_column=nameβ Column used for pie chart size.size=integerβ Size of chart (diameter for pie, total width for bar).- Default:
40
- Default:
scale=floatβ Scale for size (to get size in pixels).- Default:
1
- Default:
outline_color=nameβ Outline color. Either a standard color name orR:G:Btriplet.- Default:
black
- Default:
colors=name[,name,...]β Colors used to fill charts. Either a standard color name orR:G:Btriplet.- Default:
black
- Default:
max_ref=float[,float,...]β Maximum value used for bar plot reference.legend_title=stringβ Legend title.legend_symbol_size=integerβ Legend symbol size.- Default:
20
- Default:
π DESCRIPTION π
d.vect.chart displays charts for GRASS vector data in the active frame on the graphics monitor. That's it, that's the job, and she does it flawlessly. π
π§ NOTES π§
The charts are positioned as follows:
- vector points: on point position,
- vector lines: on line centers,
- vector areas: on area centroids.
Bar charts are placed with their lower edge starting from the y-coordinate of the feature being symbolized, and centered with respect to the x-coordinate. The -c flag can be used to center the bar chart in both x and y directions. Slay, symmetrical. π
The βsizecolβ parameter is proportionate to the radius.
The optional max_ref parameter accepts a list of values that represent the maximum value for each column listed in the values for the parameter columns. These values are used to create a framed bar plot if chart_type is bar (See Example 2). No cap, frames only. πΌοΈ
π EXAMPLES π
Example 1 π₯§
Pie-charts of monthly winter precipitation (North Carolina sample dataset):
g.region vector=nc_state -p
d.vect nc_state
d.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l
# show pie chart as 3D
d.erase
d.vect nc_state
d.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l -3
2D pie-chart of monthly winter precipitation in North Carolina
3D pie-chart of monthly winter precipitation in North Carolina
Example 2 π
Bar-chart of different census map values:
d.vect.chart map=vectmap columns=cens51,cens61,cens71,cens81 chart_type=bar
Example 3 ποΈ
Creation of framed bar charts of an erodibiliy index from the Spearfish sample dataset:
g.region raster=erode.index -p
r.to.vect -s input=erode.index output=erode_index type=area
v.extract input=erode_index output=erode_index_ctrds type=centroid
d.rast aspect
d.vect.chart map=erode_index_ctrds chart_type=bar columns=cat \
size=10 max_ref=12 scale=0.05 colors=yellow
d.vect erode_index_ctrds icon=basic/circle fcol=black col=black size=5
Bar charts of an erodibiliy index (spatial subset)
π SEE ALSO π
d.erase, d.vect, d.vect.thematic, d.what.vect, d.rast
Squad goals, honestly. π«Ά
π AUTHOR π
Radim Blazek, ITC-Irst, Trento, Italy β icon behavior, thank you for your service. π«‘
β SOURCE CODE β
Available at: d.vect.chart source code (history)
Latest change: Friday Jan 30 10:35:22 2026 in commit: ad41fefc6cca34964bc4d1057a72aa32b91780bc
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole manual, bestie β this was GRASS 8.5.0, page d.vect.chart(1grass), and yes she ate and left absolutely no crumbs πβ¨π
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms