Auto Search by Clicking Keywords in Word Cloud

  • Last update:February 07, 2025
  • Overview

    Problem

    Word cloud is mostly used to search keywords and display the heat ranking. You can add links to the keywords in the word cloud, where you can click to jump to the corresponding search pages, to make the function of the word cloud more complete.

    For example, in the word cloud, you can click a keyword to jump to the Google search term page, as shown in the following figure.

    词云关键词一.gif

    Solution

    Configure Google search URLs under Special Effect > Interaction > Hyperlink to search by passing words from a word cloud as parameters.

    Example

    Template Preparation

    Open the template under the path %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc\Chart\WordCloud\WordCloud.cpt, as shown in the following figure.

     词云关键词2.png

    Style Setting

    Add a hyperlink under Special Effect > Interaction > Hyperlink, add wd as Parameter and World_Name as Value, as shown in the following figure.

    Java codes are as follows:

    window.open("https://www.google.com/search?q="+wd);

    iconNote: 
    wd is the parameter needed for Google search, and cannot be changed. To use other search engines, you need to replace the URL and parameter names with the corresponding values.

    Preview Effect

    PC

    Save the template and click Pagination Preview. The following figure shows the effect.

     词云关键词一.gif

    Mobile Terminal

     词云关键词4.jpg

    Template Download

    Attachment List


    Theme: Chart
    • 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