Hi Fernanda,
Could you please clarify the following.
1) If I understand your requirements correctly here is the sample that uses some resource to create a chart.
Sample:
Embeddedchart.zip
2) If this is not the case could you please elaborate the issue with some more details? This would help me in investigating further on this issue.
Please let me know if you have need any further assistance.
Best regards,
Melba.