2
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);
}
However I am not succeeding, he executes the first time I command, but when I send the second he adds as if they were the first values, they do not concatenate!
You are using this example http://www.java2s.com/Code/Java/Chart/JFreeChartLineChartDemo1.htm?
– Rafael
Yes, this very one
– GGirotto
You want to add the values by your main?
– Rafael
Yes add by main
– GGirotto