After successfully running a simulation, epanet-js offers tools to visualize your results on your map. This allows you to quickly identify trends, understand hydraulic behavior, and pinpoint areas of interest or concern. The Map Tab in the side panel is your control center for these visualizations.

01.png

Activating and selecting data for visualization

  1. Open the Map Tab: Once your simulation results are ready, navigate to the Map Tab, located in the right-hand side panel of the application.
  2. Choose Data to Display: Within the tab, you can select which property you want to visualize for different network elements:
  3. Map Update: As soon as you select a property, the map will automatically update. Your network elements (nodes or links, depending on your selection) will be color-coded based on the values of the chosen property. A default legend will also appear in the Map Tab, showing the initial color scheme and data ranges.

Customizing the map visualization

You can customize how your data looks on the map in many different ways to make it easier to see and understand what's important. To access these customization options, click on the Range field. This will open a pop-over that displays controls for adjusting the classification mode, number of classes, and specific break points for that visualization. You can also change the color ramp by clicking on the Ramp field.

02.png

Data classification: setting modes and classes

epanet-js organizes the visualization of your results by splitting it into groups and giving each group a different color. You can choose how these groups are created:

Choosing color ramps

The colors you choose will make a big difference in how your map looks. The Ramp selector offers a wide variety of pre-defined color palettes:

image.png

image.png

<aside> <img src="/icons/sync_blue.svg" alt="/icons/sync_blue.svg" width="40px" />

Reverse Colors

You can flip the color scheme by clicking the "Reverse Colors" button. This is helpful when you want to switch how colors represent values (for example, changing from light-to-dark to dark-to-light).

</aside>

Fine-tuning breaks and colors

Below the Mode and Classes you'll find an interactive legend editor that allows for precise control over each class: