class CountryAxisGenerator implements AxisGenerator {

    @Override
    public Stream<AxisPointDTO> getPoints(long projectId) {
        return countryRepository.findAllByProjectIdOrderByCode(projectId).stream()
                .map(country -> new AxisPointDTO(country.getCode(), country.getCode().toUpperCase(), country.getName()));
    }

}