Line Chart, problem in java;/

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dekros
Posts: 1
Joined: Sat Jan 23, 2016 12:21 pm
antibot: No, of course not.

Line Chart, problem in java;/

Post by dekros » Sat Jan 23, 2016 12:25 pm

Hello i made chart with user activity depend of hour.
i made defaultCategory like this:
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
for (Integer hour : keys) {
dataset.addValue(map.get(hour).intValue(), "Online", hour);
}
and later i made chart
JFreeChart chart = ChartFactory.createLineChart("Activity",
"Hour", "Online", dataset, PlotOrientation.VERTICAL, false, false, false);
(map.get(hour) is integer) but in chart
i have double values ss: http://i.dekros.ovh/2016-01/23-01-16_12-25-43.png but can't be half user... how to change this?

Locked