Panel: Map Data¶
The Map Data panel imports the csv data from the Panel: CSV File. It will create several collections with chart objects.
Panel Components¶
Dropdown: Select Field¶
Select a field from the loaded CSV File. This is used by the Map Data button to create an object for each record in the CSV File. Use a unique field for this such as the Name field.
Tip
To sort your data when mapping, choose the field you want it sorted by.
For example, choosing the index field will sort the rows as it is in the csv file.
Choosing the Name field will sort the data alphabetically.
Choosing the Main Value will sort the data by value, placing the smallest value first.
Created objects in outliner¶
The Map Data function will create several collections listed below:
CSV Master
The main collection containing all objects relating to CSV Charts.
CSV_ValueObjects
Contains objects that get instanced by CSV_Instances.
Default state: Hidden
CSV_Instances
Contains an object for each row in the csv file. The objects are named as per the Selected Field Dropdown when Mapping Data.
Default state: Hidden
CSV_ChartObjects
Contains the chart shape instanced by Area_Object. The objects are named as per the Selected Field Dropdown when Mapping Data.
Default state: Hidden
CSV_Chart_Area
Contains the Area_Object. This is the main chart object, all objects in other collections get instanced here.
Default state: Visible
Usage¶
Mapping and clearing data to the scene¶
The below example shows how to map data and how to clear it.
Important
Do not clear the csv data unless you want to permanently remove all created CSV objects from your scene. If you want to update data, use the Update Data function.