You probably want to check with your university policy on grade sharing so you don't wander into a problem with your local regulatory body.
As for my opinion:
I am from the US so the following examples are based on the Family Educational Rights and Privacy Act (FERPA), however they may be useful to you anyway.
Speaking from a STEM prospective, at my university in the very large auditorium classes, and even smaller (30-50 student) classes histograms were regularly either mentioned after the test or posted. It was very useful for a student to know, based on their grade, what percentile they fit into. For me, it helped me understand if I really understood the material or I was carried by a curve. Due to this I consider posting a distribution (anonymous) a highly useful tool for your students that actually care about their grade. In advanced classes where curves are common this could help them if they need to ask for more resources.
It's reasonable (albeit maybe not FERPA reasonable) to assume that as long as the grades are anonymous and the percentiles group into large enough bins students can't deduce other students exact grade which may be the loophole (discussed in the links below).
On the other hand you have small classes. Sharing a distribution of 10 students for example may give too much information to your students about other student's grades. Again, FERPA is the problem here. Is anonymous distribution of grades enough to protect you from an angry student? You may want to check your university teaching guide. If FERPA isn't an issue then it really comes down to if you think it will provide students some value. I can see it both ways. What information could the grade distribution of 3-6 students (for example) provide to the students? Not much I think.
There are some good points here posted by people on both sides. I don't personally see a problem with it (your case I lean more towards not doing it however) but FERPA is a headache and you are probably best not asking here, but rather asking your university.
There are some links on the web related to FERPA that may be similar to your local policy:
This link (non-edu) seems to imply the grade distribution falls outside the scope of grade disclosure rules.
This USC guide says grade posting is fine as long as student names are anonymized with a unique code and non-alphabetically listed.
CCCOnline seems to support posting grade distributions as being okay with FERPA.
ASU says something similar to the USC guide.
This UMSL link Says teachers are responsible for coming up with a way of distributing grades such that no student knows the other's grade.
EDIT
A comment has brought to my attention you may not be from the US. Unfortunately, I wasn't able to find a similar depth of resources compared to FERPA through Google and I have no experience with European law regarding grade distribution. I found the following AACRAO working group paper on the GDPR unfortunately it provides situations and questions but not answers. I apologize. As always, refer to your University for the final say on these matters.