}
private void makeData() {
series = new Series[2];
PlainSeries s0 = new PlainSeries();
PlainSeries s1 = new PlainSeries();
s0.setKey("2004");
Map<String, Integer> data0 = new HashMap<String, Integer>();
s1.setKey("2005");
Map<String, Integer> data1 = new HashMap<String, Integer>();
if (country.equals("Ukraine")) {
data0.put("Kiev", new Random().nextInt(500000));
data0.put("Kharkov", new Random().nextInt(500000));
data0.put("L'vov", new Random().nextInt(500000));
data0.put("Donetsk", new Random().nextInt(500000));
data0.put("Dnepropetrovsk", new Random().nextInt(500000));
data1.put("Kiev", new Random().nextInt(500000));
data1.put("Kharkov", new Random().nextInt(500000));
data1.put("L'vov", new Random().nextInt(500000));
data1.put("Donetsk", new Random().nextInt(500000));
data1.put("Dnepropetrovsk", new Random().nextInt(500000));
} else if (country.equals("France")) {
data0.put("Paris", new Random().nextInt(500000));
data0.put("Lion", new Random().nextInt(500000));
data0.put("Nice", new Random().nextInt(500000));
data1.put("Paris", new Random().nextInt(500000));
data1.put("Lion", new Random().nextInt(500000));
data1.put("Nice", new Random().nextInt(500000));
} else {
data0.put("Rome", new Random().nextInt(500000));
data0.put("Florence", new Random().nextInt(500000));
data1.put("Rome", new Random().nextInt(500000));
data1.put("Florence", new Random().nextInt(500000));
}
s0.setComparator(Sorter.ASCENDING);
s0.setData(data0);
s1.setComparator(Sorter.ASCENDING);
s1.setData(data1);
series[0] = s0;
series[1] = s1;
}