[]
        
(Showing Draft Content)

Treemap Chart

A Treemap Chart is used to display hierarchical data as a set of nested rectangles organized in a tree-like structure. Data, organized as branches and sub-branches, is depicted with the help of rectangles. With Treemap charts, you can easily drill down huge data to an unlimited number of levels.


The following is a treemap chart where rectangles represent the sales revenue for retailers in various countries. The rectangles are sized according to the sales revenue corresponding to each country.

Example of Treemap chart

Design a Treemap Chart in Wyn Enterprise

From the Dashboard Toolbox, open the Data Visualization node and drag-drop the Treemap Chart scenario onto the design area.


Adding a chart scenario from the Dashboard Toolbox

Bind Dataset to Chart Scenario

With the scenario selected, from the Data Binding tab, select the dataset. Once the dataset is successfully loaded in the designer, the data binding panel automatically expands and displays the data attributes available in the dataset.


The following image shows the chart scenario bound to the 'RetailDataset' dataset.


Adding a dataset to chart scenario


On dragging and dropping the data attributes to the data binding area of the scenario, the chart is plotted accordingly, with a default chart title on the design area.


Chart Scenario with bound attributes


By default, the data labels in the chart scenario are hidden. You can display the data labels in the scenario by setting the Show Data Label property to 'True', with the Value property set to 'True'. To show labels for data attributes bound to 'Details', set Details property to 'True'.

treemap chart datalabels_new

Format Data Attributes

You can format the data attributes and control the display of data by performing a variety of operations such as renaming, modifying data format and display unit, creating a hierarchy field, applying an aggregation method, etc. Using these operations, you can control the display of data attributes in a scenario.


For more information about these operations, see Data Attributes.


In the following image, the data format for the data attribute is modified to display the sales revenue in 'currency'.


Formatting fields in a chart

Analyze Data

Wyn Dashboards scenarios support rich data analysis and exploration capabilities that can help analyze massive amounts of information and make data-driven decisions. For example, adding filters to scenarios, sorting data, applying conditional formatting, etc. Note that you can apply all these operations using the Action Bar corresponding to each scenario in the designer.


For more information, see Data Analysis and Interactivity in Dashboards.


In the following chart scenario, the filter is applied to show data for all the countries, except Netherlands, Sweden, and Finland.


Filtered data in a scenario

Customize Chart Appearance

You can customize the default chart appearance by setting properties in the Inspector tab of the scenario such as adding a border, modifying data labels, setting chart style, renaming chart title, etc.

  1. Add Click Action

    Use the Click Action property to trigger specific dashboard commands like showing or hiding other dashboard scenarios. From the Interaction section of the Inspector Panel, search the Click Action property and choose a trigger command option from the following:

    1. None: To disable any interaction on click.

    2. Show Tooltip: To display the tooltip on click action.

    3. Keep: To filter the data view by applying a condition on the data points.

    4. Exclude: To remove or hide the selected data points from the current view.

    5. Drill Down: To display more detailed information using the Wyn Drill Down feature.

    6. Jump: To redirect to another dashboard, report, or external URL. See the Jump To article for more information.

    7. Command: To trigger specific dashboard commands like show, hide, or switch. Click + Add to access the Command Settings popup and select a command from the Command dropdown.

      1. Show: To display the scenario on click.

        CommandSetting-Show

      2. Hide: To hide the scenario on click.

        CommandSetting-hide

      3. Toggle: To toggle the selected scenario on click action.

      4. Switch Page: To switch pages on click.

        CommandSetting-switchPage

      5. Switch Tab: To switch the tab on click.

        CommandSetting-switchTab

      6. 3D Scene Custom Script: To pass the selected data point as a parameter to the 3D scene script. This script creates specific UI effects in 3D scenes such as highlighting objects or changing the camera angle.

      7. Drill Down: To drill down detailed information on the selected data point. See the Drill Down article for more details.

        CommandSetting-3dScene

      8. Jump: To create a redirection to another dashboard, report, or external URL. See the Jump To article for more information.

        CommandSetting-jump

      9. Show/Hide Combined Map Layer: To show or hide the layer of combined maps.

        CommandSetting-CombinedMap

  2. Set Chart Style

    Customize the chart colors in the scenario by using the Palette property in the Inspector tab. Set the property to a suitable color palette from the list.


    Changing the color palette for the chart scenario

  3. Item Space

    The Item Space property of the Treemap charts allows you to add padding between the visual elements to meet your design guidelines. This property controls the spaces between individual shapes within a visual scenario ensuring that the visual representation aligns with the desired aesthetic and improves readability.

    Locate the Item Space property under the Chart Style section of the Inspector Panel and use the + or - buttons to increase or decrease the item space. You can also enter a numeric value in the input box. The default value of this property is set to 0.

    ItemSpaceIPTreeMap


    The below image shows a Treemap chart with the Item Space property set to 5.

    ItemSpaceTreemap

    Note: When the value of the Item Space property is large and data points are fewer, the data display will be incomplete.

  4. Enable Automatic Carousel

    Enable the automatic carousel effect in the scenario by using the Automatic Carousel property to create a highly interactive and effective dashboard. The automatic carousel effect when enabled, highlights the rectangles one by one. You can specify the time interval for the automatic carousel by using the Interval (seconds) property.


    Changing Axis Titles


    You can see this effect when previewing the dashboard in the Dashboard Viewer.


    Changing Axis Titles


  5. Data Labels

    You can display the data labels in the scenario by setting the Show Data Label property to 'True', with the Value property set to 'True'. To show labels for data attributes bound to 'Details', set the Details property to 'True'.

    Show Data Lables



    Data Label Font Setting

    You can set the data label font color by using the Data Label Font Setting.


    Example: In this example, we have selected the Palette as shown below.

    Palette selected


    Under Data Label Font Setting, we have selected the font color as green. The data labels will be displayed as per the Font Color selected under Data Label Font Setting as shown below.


    Select Data Label Font Color.


    Auto Font Color: Please note that if you want to adjust the data label font color automatically based on the light/dark colors in the Palette selected (under Chart Style) for clear visibility, then set the Auto Font Color to True. By default, this property is set to False.


    Example: If you select the font color under Data Label Font Setting, and also set the Auto Font Color to True, then the font color of the data labels will be adjusted automatically based on the light/dark colors in the selected palette for clear visibility as shown below.


    Auto Font Color True


    Data Labels - Display Pattern

    The treemap chart supports the line break (, \n()) in the data label, and you can add a line break between Value and Details, by using the Display Pattern property for the data labels. If you hide some parts of the label, like the value, and detail the part will be removed from the pattern, and the related connector (the prefix**, \n ()**) will also be removed.

    By default, the display pattern selected is Detail(Value) as shown below.


    display pattern Trremap


    You can select any pattern from the dropdown list.

    treemap display patter dropdwon list options


    Preview the chart, the data labels will be shown as per the display pattern selected in the designer.

    preview treemap chart display pattern