FVS Click to Show/Hide Components

  • Last update:November 15, 2024
  • Overview

    Application scenario: If you have installed the FineVis Data Visualization plugin, you can learn functions related to the FVS template in this document.

    Version

    Report Server VersionPlugin VersionFunctional Change

    11.0.22

    V2.3.0

    Added the Show/Hide event under Interaction > Interaction Event > Add Event > Click. You can show or hide components without using JavaScript.

    Application Scenario

    If the plugin is of V2.3.0 or earlier versions, you need to add a JavaScript event to realize components showing and hiding in FVS templates. The configurations and subsequent maintenance are relatively complicated.

    In V2.3.0, the Show/Hide click event was added. You can show/hide components, or toggle the status through simple setting.

    GIF2.gif

    Function Description

    All 2D components that support click events also support the Show/Hide event. After adding an event, you can Show/Hide target objects.

    • Event names cannot be empty, and duplicate event names cannot exist within the same component.

    • Multiple objects can be added in an event.

    • You can search and filter components in the drop-down list of Target Object. The selection of multiple components is supported.

    • Three types of interactive actions are available: Show, Hide, and Toggle Show/Hide.

    111.png

    Example

    Creating a Template

    Choose File > New FineVis Visualization Dashboard in the upper left corner of the designer to create a blank FVS dashboard, as shown in the following figure. 

    4.png

    Adding Components

    Add title components for the setting of click interaction events. The components to be shown or hidden can be added as needed.

    In this example, a bar chart, a pie chart, a line chart, and three image components (used as backgrounds for the title components) are added. The component names can be customized and modified.

    The following figure shows the final effect.

    5.png

    In the initial state, you need to manually set the components that you want to hide to be invisible, as shown in the following figure. 

    GIF1.gif

    Setting Show/Hide Events

    Select the title of Column Chart, and choose Interaction > Add Event > Click > Show/Hide.

    Customize the action name. The setting items for Target Object and Interactive Action are as follows:

    Target Object
    Interactive Action

    Column Chart, and Column Chart Title Background

    Show

    Pie Chart, Line Chart, Pie Chart Title Background, and Line Chart Tile Background

    Hide

    6.png

    Similarly, set the events for the other two title components by selecting the corresponding target objects to show or hide. No further elaboration is given here.

    Effect Display

    PC

    Click Preview in the upper right corner of the template to view the effect, as shown in the following figure.

    GIF2.gif

    Mobile Terminal

    Adjust components for the mobile terminal and enable Mobile Layout. For details about the preview method, see Preview on Moblie Terminal. The following figure shows the effect.

    GIF3.gif

    Template Download

    Click to download the template: FVS Event for Showing and Hiding Components.fvs.

    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