<div dir="auto"><div>Azzurra and list,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 2, 2021, 08:07 Azzurra Lentini <<a href="mailto:azzurralentini@gmail.com" target="_blank" rel="noreferrer">azzurralentini@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Hi to all, </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">I am using Qgis 3.16.1. </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">I have a shape file of polygons of
different zones classified by type of vegetation (so each polygon has different
type of vegetation and these polygons have different surface). Each type of vegetation
has a code (string type: letters and numbers),  so the field of type vegetation has data type string (text). </span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"><br></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:115%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">I need to understand which kind of
vegetation is more frequent (which type of vegetation occupies a greater areal
extension) and I would like to do a histogram  that shows the result.</span></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I think you want the Vector Layer Histogram tool for this.  I haven't used it myself but from what I read it should do the job. I imagine you'll need to add your area to the DBF.</div><div dir="auto"><br></div><div dir="auto"><a href="https://gis.stackexchange.com/questions/352859/how-to-create-histogram-to-visualize-features-value-in-qgis-3">https://gis.stackexchange.com/questions/352859/how-to-create-histogram-to-visualize-features-value-in-qgis-3</a><br></div><div dir="auto"><br></div><div dir="auto">An alternative is to add the area to the DBF and import the DBF into your favourite spreadsheet program.  This would give you access to other statistical tools. </div></div>