private void fillData() {

        confirmedList.clear();
        recoveredList.clear();
        deathsList.clear();
        
        // Getting the information and filling the lists used to fill the CoronaChart
        if (!offlineCheck.isChecked())
            response = getCoronavirusData(
              "https://coronavirus-map.p.rapidapi.com/v1/summary/latest", 
              HttpStream.GET
              );
        else
            response = new JSONObject(new String(Vm.getFile("request.json")));

        JSONObject data = response.getJSONObject("data");
        dates = data.names();
        array = data.toJSONArray(dates);
        for (int i = 0; i < array.length(); i++) {
            date = dates.getString(i);
            item = array.getJSONObject(i);
            MyDate myDate = new MyDate(Integer.parseInt(Convert.remove(date, "-")));
            confirmedList.add(
              new Data<MyDate, Integer>(myDate, item.getInt("total_cases"))
              );
            recoveredList.add(
              new Data<MyDate, Integer>(myDate, item.getInt("recovered"))
              );
            deathsList.add(new Data<MyDate, Integer>(myDate, item.getInt("deaths")));
        }

        // Sorts the data by date;
        Collections.sort(confirmedList, new Comparator<Data<MyDate, Integer>>() {
                
            @Override
            public int compare(Data<MyDate, Integer> o1, Data<MyDate, Integer> o2) {
                return o1.x.compareTo(o2.x);
            }
        });
        Collections.sort(recoveredList, new Comparator<Data<MyDate, Integer>>() {
        
            @Override
            public int compare(Data<MyDate, Integer> o1, Data<MyDate, Integer> o2) {
                return o1.x.compareTo(o2.x);
            }
        });
        Collections.sort(deathsList, new Comparator<Data<MyDate, Integer>>() {
        
            @Override
            public int compare(Data<MyDate, Integer> o1, Data<MyDate, Integer> o2) {
                return o1.x.compareTo(o2.x);
            }
        });
    }