Vaadin Chart Problem

Hey all! I have a problem in my congestion chart which I haven’t solved yet and I need help. The problem is in xAxis when im trying to show values of my List. When viewing the contents of categories.toString() it shows: (see image)

What I am getting in my xAxis is as shown in other image. (only 1 value of list in xAxis)

Any idea what is happening here?

Here is my code:
```private void init() {

    chart.setConfiguration(conf);
    chart.addClassName("congestionChart");
    conf.setTitle("The busiest times in restaurants");
    
    // Add data to the data series using the restaurants in list
    for(RestaurantWeek rw : weeklyRestaurants){
        conf.addSeries(new ListSeries(rw.getRestaurantName(),                  rw.getRestaurantPpl()));  
    }

    //Chart xAxis
    List<String> categories = weeklyRestaurants.stream()
            .map(rw -> rw.getTimeStamp())
            .distinct()
            .sorted()
            .collect(Collectors.toList());

    System.out.println(categories.toString());
    // Set categories as X-axis values
    xAxis.setCategories(categories.toArray(new String[0]));
    conf.addxAxis(xAxis);

    // Chart yAxis
    yAxis.setTitle("Number of people");
    //yAxis.setTickInterval(1);
    conf.addyAxis(yAxis);

    // Legend
    Legend legend = conf.getLegend();
    legend.setAlign(HorizontalAlign.CENTER);

    add(chart);
}

}```
image.png
image.png

Maybe you can try something like this:
for(String category : categories) {
xAxis.addCategory(category);
}