Bubble Chart in Email Document

Note
In this article, we will use GroupDocs.Assembly to generate a Bubble Chart report in Email Document.

Bubble Chart in Email Document

Reporting Requirement

As a report developer, you are required to share your sales/orders dynamically with the following key requirements:

  • Report must be in .eml or .msg format.
  • It must add email recipient, css and subject of the email.
  • Retrieve total Contract Prices by Months.

Adding Syntax to be evaluated by GroupDocs.Assembly Engine

Chart Title

Total Contract Prices by Months<<foreach [in getContracts()
.groupBy(c => c.getDate().getMonth())]>><<x [key + 1]>>

Chart Data (Email)

X-Values

Total Contract Price<<y [sum(c => c.getPrice())]>><<size[count()]>>

Size

0.7

2.7

10

1.8

3.2

4

2.6

0.8

8

### Download Bubble Chart Template

Please download the sample Bubble Chart document we created in this article:

Generating The Report

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Email Templates/Bubble Chart.eml";
String docReport = "/Email Reports/Bubble Chart_report.eml";
Object[] getDataSourceDetails = DataStorage.emailDataSourceObject("Bubble Chart.eml", ".eml");
String[] dataSourceNames = DataStorage.emailDataSourceName(".eml");
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument),
CommonUtilities.getOutPath(docReport), getDataSourceDetails,
dataSourceNames);
Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.