Dynamically Displaying Absolute Canvas Height in FVS on Mobile Terminals

  • Last update:October 29, 2025
  • Overview

    This document applies to users who have installed the FineVis Data Visualization plugin to learn FVS template functions.

    Application Scenario

    When you create FVS mobile templates, it's common that there are many parameter widgets. In such cases, you can hide less frequently used widgets or widgets that do not need to be displayed. You can display them as required, while the canvas height can dynamically change based on the displayed content, as shown in the following figure.

    应用场景.gif

    Implementation Method

    (1) Add a Click event for title components to hide or display the specified widgets of other types when the title components are clicked.

    (2) Enable the mobile layout.

    Example

    Creating a Template

    Choose File > New FineVis Visualization Dashboard in the upper-left corner of the designer to create a blank dashboard. You can customize the dashboard name and size. In this example, the mobile template width is set to 375 pixels, as shown in the following figure.

    新建模版.png

    Designing Components

    (1) Choose Other > Title in the component area to add a title component to the canvas, and resize and relocate it appropriately.

    Set Title Content to View All Parameters and Hide All Parameters for the title components, respectively, as shown in the following figure.

    设计组件(1).png

    (2) Choose Widget > Dropdown Box in the component area to add four drop-down list widgets to the canvas, and adjust their positions, as shown in the following figure.

    设计组件(2).png

    (3) Select the components that do not need to be hidden at the same time, and click Combine on the right of the canvas to group these components.

    The layout and sizes of the components in this group are not affected by re-layout, meaning that the layout of the components in this group can stay the same as the layout on the template canvas, as shown in the following figure.

    设计组件(3).png

    (4) Select the components that need to be hidden at the same time, and click Combine on the right of the canvas to group these components, as shown in the following figure.

    设计组件(4).png

    (5) Choose Other > Absolute Canvas in the component area to add a component to the canvas.

    Adjust the absolute canvas size and set the canvas component's border background and borderlines to make the canvas height more visually intuitive on the page, as shown in the following figure.

    设计组件(5).png

    (6) Drag the two groups directly to the absolute canvas. When the prompt "Release to enter the Absolute Canvas." appears, release the mouse to place them into the absolute canvas. Adjust the absolute canvas position, as shown in the following figure.

    设计表格(6).gif

    Adding a Click Event

    (1) Add a Click event for the View All Parameters component. Select the component, and choose Interaction > Add Event > Click > Show/Hide on the right. Select Group 2_Page1 from the Target Object drop-down list, as shown in the following figure.

    添加点击事件(1).png

    (2) Add a Click event for the Hide All Parameters component. Select the component, and choose Interaction > Add Event > Click > Show/Hide. Select Group 2_Page1 from the Target Object drop-down list, as shown in the following figure.

    添加点击事件(2).png

    Enabling the Mobile Layout

    (1) Choose Template Settings > Mobile Terminal on the top of the designer, and then select Mobile Layout, as shown in the following figure.

    开启移动端布局(1).png

    (2) Switch to the mobile view, and select the absolute canvas component. On the Content tab page on the right, select Reset Phone Layout for Preview Re-layout. After enabling re-layout, you can set component spacing, as shown in the following figure.

    开启移动端布局(2).png


    Effect Display

    For details about the preview method, see FVS Template Preview and Mounting. The effect is the same as that in the section "Application Scenario."

    iconNote:
    On the PCs, the display/hide effect can be implemented, but the absolute canvas height will not change dynamically.

    Template Download

    Attachment List


    Theme: FineVis Data Visualization
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy