add pattern definition for background graph