The example demonstrates how to configure a diagram which is automatically updated.