5
$\begingroup$

Here's a rough demonstration of what I'm doing:

Histogram[{1, 1, 3}, {Range[0.5, 3.5, 1]}, Axes -> {True, False}, ChartElements -> Graphics[Disk[]]]

Histogram with circles for frequency

How do I get the circles to be the exact right size so that a frequency of $x$ is represented by exactly $x$ full circles?

$\endgroup$
  • 3
    $\begingroup$ Maybe Histogram[{1, 1, 3}, {Range[0.5, 3.5, 1]}, Axes -> {True, False}, ChartElements -> {Graphics[Disk[]], {1, 1}}]? $\endgroup$ – Carl Woll Jun 18 '17 at 21:38
  • $\begingroup$ Thanks! If you want to pose it as an answer, I'll accept! $\endgroup$ – Shane Jun 19 '17 at 1:06
3
$\begingroup$

According to Carl Woll's comment:

Histogram[{1, 1, 3}, {Range[0.5, 3.5, 1]}, Axes -> {True, False}, ChartElements -> {Graphics[Disk[]], {1, 1}}]

enter image description here

He used the following settings of the ChartElements function:

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.