'Put the same label in several intervals in JFreeChart

I want to make a bar chart in JFreeChart that has a structure similar to the following:

enter image description here

As you can see, it starts with "Clay", then "Sand", then "Clay" again, and so on.

I did not find in the whole internet a similar chart for JFreeChart. Is there any possibility to do something like this in this tool?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source