You can generate a decision tree from data using SmartDraw's Decision Tree Visualizer.
Click the + icon to switch the SmartPanel into the Insert Content view. We also call this the Plus menu.
Once on the Insert Content view, select the Add Data Visualizer category and click on Decision Tree.
Prepare Your Data Before Importing
To get started creating your data file, the header row of your file must be set up like this:
- Note: SmartDraw will not recognize your data file if the header row does not match the above. Any of the fields below the header that are optional can be left empty.
- ID: The unique number given to each decision you want to appear in your diagram. The first decision has an ID of 0. (required)
- Label: The name that appears inside a decision box. (required)
- ParentID: This tells SmartDraw what decisions are the children of other decisions. (required)
- LineLabel: This adds text directly onto a line between decisions. (optional)
- Hyperlink: This creates a clickable link to supporting pages. (optional)
- Description: Add any detailed notes. The description won't appear in your final diagram. (optional)
Example:
Import your Data
Once you have your data set up, click on Decision Tree visualizer.
Drag and drop your file or click on choose a single file to locate the data file on your computer and click Import.
Once you've opened your document you will have a decision tree diagram containing your data. This diagram will let you edit your decision tree like any other SmartDraw diagram.