Adding interactivity to a Gantt Chart
In this section, we will look at how to add interactivity to your Gantt charts. Everything you have learned so far has been about rendering Gantt chart. The features up till now can be easily tried using Mermaid Live Editor or any other Mermaid-supported editor. However, interaction is an advanced feature, and the easiest way of experimenting with this functionality is to use Mermaid integrated on a HTML page. This way, you will have control over the security settings, as well as the possibility to add JavaScript functions.
You will learn to make it possible for users to interact with your Gantt chart by using mouse clicks. But first, let's understand why we need to add interactivity to our diagrams in the following sub-sections.
Why add interactivity to a Gantt Chart?
Sometimes, when you have a Gantt chart, you only visualize the high-level aspects of the project plan or the different tasks at hand. What if each task described on...