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

1 Answer 1

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 and acknowledge you have read our privacy policy.

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