Adding custom graph when user provides the XML page