Reputation: 27276
I am trying to produce a distribution of some "score" function. This function is scoring in the [1..100] range so I have data points in the following form:
score 1: n1 counts
score 2: n2 counts
...
score 100: n100 counts
I tried to use a Bar Chart (using ChartFactory.createBarChart(...)
) but the result is too crowded on the x-axis where I have 100 categories (for scores 1 to 100):
Note that the results shown above have a huge concentration (spike) around score 78 but that's not the problem. Even if they were nicely distributed I would still get an overloaded x axis.
Is there an easy remedy or should I be looking into some other kind of chart?
Upvotes: 0
Views: 739
Reputation: 27276
I got better results with an IntervalXYDataset
and using ChartFactory.createXYBarChart
:
Upvotes: 1