How to concatenate values in jfreechart?
I'm trying this way:
public static DefaultCategoryDataset dataset = new DefaultCategoryDataset();;
public void atualizaDataset(int humano, int zumbi, int rodada){
final String series1 = "Humano";
final String series2 = "Zumbi";
dataset.addValue(humano, series1, (Comparable)rodada);
dataset.addValue(zumbi, series2, (Comparable)rodada);
}
But I am not succeeding, it executes the first time I send it, but when I send the second it adds as if it were the first values, they do not concatenate!