Here is some sample code which I picked up from a component developed by one of my colleagues.
Here they are creating a new XML file for Chart and adding it to BG customizing.
This code was coded in WDDOMODIFYVIEW method of the view containing BG.
In this code we are setting things like Series Title, Category Title etc for BG at runtime.
Hope this helps.