Adapting the source data to the tBarChart schema

Chart

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

Procedure

  1. Double-click the tMap to open the Map Editor.
    You can see an input table on the input panel, row1 in this example, and three empty output tables, named Population, Area, and Density on the output panel.
  2. Use the Schema editor to add three columns to each output table: series (string), category (string), and value (integer).
  3. In the relevant Expression field of the output tables, enter the text to be presented in the legend area of the bar chart, "Population (x1000 people)", "Land area (km2)", and "Population density (people/km2)" respectively in this example.
  4. Drop the City column of the input table onto the category column of each output table.
  5. Drop the Population column of the input table onto the value column of the Population table.
  6. Drop the Area column of the input table onto the value column of the Area table.
  7. Drop the Density column of the input table onto the value column of the Density table.
  8. Click OK to save the mappings and close the Map Editor and propagate the output schemas to the output components.