How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

AnyGantt is an advanced JavaScript-based solution for building complex and informative Gantt charts.It is completely cross-browser and cross-platform and can be used for ASP.NET, ASP, PHP, JSP, ColdFusion, Ruby on Rails or simple HTML pages.

We have created a new tutorial on building charts in Qlik Sense. This illustrates how to use the AnyGantt extension to add dimensions and measures to create Project Gantt charts.

You can view the video version of the tutorial as follows:

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

Alternatively, you can read the text + picture version of the same tutorial below.

Dimensions and measures: the first step

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

To create a Gantt chart in Qlik Sense, you only need to add a dimension to represent the task or activity.

To add a dimension, go to "Dimensions" in the properties panel.

Then click "Add Dimension" and select a dimension for data visualization.

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

To add a measure, go to "Measure" in the properties panel. Click Add Measure, and then select a measure.

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

Then use the "Map As" drop-down menu to map the metric.

Basically, it is enough to add only one measure, the start date. Map it to "Actual Start".

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

Now you can see the Gantt chart:

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

The dimension column on the left shows the task name-the dimension we added earlier.

On the right, there are project tasks. Currently, all tasks are shown as milestones because we only use one metric.

To create actual bars for the task, you need to add a second measure-end date. Map it to "actual completion".

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

As you can see, most tasks are now displayed as bar charts. However, some tasks are still milestones because the end date is not specified in the project data:

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

Surveying and mapping measures

For these measures to work properly, you should map them.

Select the mapping based on the type of element represented by the metric.

Use "Actual Start" as the project milestone, "Actual Start" and "Actual Finish" as the actual task bar, "Base Start" and "Base Finish" as the baseline bar, and "Actual Progress" and "Base Progress" as the actual And benchmark progress bar. For more product information, please consult [online customer service] >>>

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

If the measure you want to map represents some other information, and you only want to display it in the measure column, use Data Fields (the default mapping).

Multidimensional

The second thing about dimensions and measures is that you can add multiple dimensions to create a multi-level hierarchy in Qlik Sense's Project Gantt chart.

Remember, you need to arrange the dimensions from top to bottom in the correct order. To change the order, just drag the dimension in the properties panel.

When there are two or more dimensions, AnyGantt hierarchically displays all dimensions in a dimension column in a tree structure. Similarly, it will group the actual bar chart and other elements under the dimension bar chart.

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

Dimension bar text

You can customize the text displayed in the dimension column of the Gantt chart in Qlik. For example, let us use the numeric identifier of the task as the dimension. See, the dimension column now shows numbers:

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

To set the displayed text, we need to go to "Dimensions" in the properties panel, click on the dimension, and enter the string value or string expression in the "Dimension Column Text" input box. We will use a field containing the name of the task:

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

The dimension column will now display the project task name. Take a look:

How to use AnyGantt extension to add dimensions and measures to create Project Gantt charts

AnyGantt only works with unique identifiers, so if the task names are not unique, it may make sense to use this feature, but you still have to display them.


Guess you like

Origin blog.51cto.com/14467432/2489445