@martiniman rrd4j is a nice tool to get diagrams quickly. For more detailed graphing I want to highly recommend the usage of InfluxDB + Grafana.
Grafana is extremely flexible and images can be exported to be shown in your openHAB sitemap.
Installation is pretty straight forward. Setup may take you a few minutes.