Add decompose functionality for custom graphs shown in views