# Decision Tree

## Decision Tree

{% hint style="success" %}
*Check out the below given walk-through on how to use the Decision Tree chart component in Designer module.*
{% endhint %}

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2Fe36wf4CRDmDiGFqQtLTJ%2FDecision%20Tree%20.gif?alt=media&#x26;token=a1ce0069-5fdf-4c98-bd4a-5048f2b5ff62" alt=""><figcaption></figcaption></figure>

A Decision Tree chart that helps determine a course of action or show a statistical probability. The chart is called a decision tree due to its resemblance to the namesake plant, usually outlined as an upright or a horizontal diagram that branches out.&#x20;

The Decision Tree chart is made up of various nodes. It contains three types of nodes: Decision nodes, chance nodes, and outcome nodes. Starting from the Decision node, each ***branch*** of the Decision Tree represents a possible decision, outcome, or reaction. The furthest branches on the tree represent the end results of a certain decision pathway and are called the "leaves".

## **Best Situation to use Decision Tree chart**

* To classify the data based on a condition
* To display continuous nodes as endpoints in a Regression Tree

Some examples where Decision Tree may be used:

* To predict the Customer's action/reaction
* To forecast Stock market movements

## **Default Chart Image**

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FZhPaFrwkI1mGlmdebcc8%2Fdtree_default.png?alt=media&#x26;token=c25f00f7-b97c-4862-af07-87833d323ac1" alt=""><figcaption></figcaption></figure>

## **Properties of the Decision Tree chart**

### **Background**

The user can change the background color of the chart, can get the border for the chart and can change the border color, can get the reflection of the chart by enable the shadow option can also change the color and increase & decrease the transparency of the shadow.

### **Export Options**

The user can enable the ***Enable Context Menu***, then it is possible to download the reports in different formats if we click on the chart from the preview section. The heading and sub heading of that downloaded chart and the name of the downloaded file can be change from this section.

### **General**&#x20;

The user can change the height, width, top, left, chart type, column type & Line form. In this case we have only Chevron chart.

![](https://content.gitbook.com/content/5aLubSHNOzBzWIIdbNGx/blobs/p3bVwjnixDUPzHs7LfNc/image.png)

### **Styling Properties**

The user can change the Box color, font color, Node color, Percentage box value color and line color.

![](https://content.gitbook.com/content/5aLubSHNOzBzWIIdbNGx/blobs/Vraqedt50rjGC60lejhd/image.png)

### **Tooltip**

The user can show the description of series can use tooltip by enabling it.

## **Property Tab for Dataset Properties Pallet**

![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FUokhUQUekbDafi2HsdO2%2Fdtree_dataset.png?alt=media\&token=9db31453-d150-4e01-8c23-988e897b5cfb)

## **Decision Tree chart by changing the Properties**

<figure><img src="https://content.gitbook.com/content/5aLubSHNOzBzWIIdbNGx/blobs/qM298A84GwPrXyCPt7SQ/image.png" alt=""><figcaption></figcaption></figure>

## Sample Data

Download the given sample data and map it as mentioned below to plot your ***Decision*** chart:

The Data has been selected for specific field based on their names&#x20;

{% file src="<https://content.gitbook.com/content/5aLubSHNOzBzWIIdbNGx/blobs/AbqBeOyUzA8A5dJ0HLOw/Sample%20Data_Decision%20Tree%20Chart.xlsx>" %}
