Creating a bar chart from the input data - 7.0

Chart

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Business Intelligence components > Chart components
Data Quality and Preparation > Third-party systems > Business Intelligence components > Chart components
Design and Development > Third-party systems > Business Intelligence components > Chart components
EnrichPlatform
Talend Studio

This scenario describes a Job that reads source data from a CSV file and transforms the data into a bar chart showing a comparison of several large cities. The input file is shown below:

For more technologies supported by Talend, see Talend components.

City;Population(x1000);LandArea(km2);PopulationDensity(people/km2)
Beijing;10233;1418;7620
Moscow;10452;1081;9644
Seoul;10422;605;17215
Tokyo;8731;617;14151
Jakarta;8490;664;12738
New York;8310;789;10452

Because the input file has a different structure than the one required by the tBarChart component, this use case uses the tMap component to adapt the source data to the three-column schema of tBarChart so that a temporary CSV file can be created as the input to the tBarChart component.

Note:

You will usually use the tMap component to adjust the input schema in accordance with the schema structure of the tBarChart component. For more information about how to use the tMap component, see Talend Studio User Guide and tMap.

To ensure correct generation of the temporary input file, a pre-treatment subjob is used to delete the temporary file in case it already exists before the main Job is executed; as this temporary file serves this specific Job only, a post-treatment subjob is used to deleted it after the main Job is executed.