diagram bg