All Products
Search
Document Center

DataV:List Carousel I

Last Updated:May 12, 2023

This topic describes the chart styles of the Carousel Column Chart widget and the description of each configuration items.

Chart Style

A carousel list column chart is a table widget. It can map the length of columns based on the numerical values and display overflow text in the form of marquee animation. It can visually display multiple lines and pages of text in visual applications in the form of carousel list column chart. image..png

Settings Panel image..png

  • Search for Configurations: In the right-side panel of Canvas Editor, click the Settings tab, and click Search for Configurations in the upper-right corner. Enter the required configuration item in the search box, and click the search icon to quickly locate the configuration item. Fuzzy match is supported. For more information, see Search for asset configurations.
  • Global Style

    Parameter

    Description

    Font

    The font of text in the timeline widget. Default value: Microsoft YaHei.

    Turn on animation

    Turn on the switch to enable the animation effect.

    Animation Time

    The total time consumed by the text rollover and histogram flash effects during the carousel. Unit: ms.

    Line Spacing

    The distance between the columns.

    Quantity

    The number of lines of text displayed on each page.

    Automatic Carousel

    If you turn on the switch, the histogram is automatically played again after the data is played once. If you turn off the switch, the histogram is no longer played after data is played once.

    Note

    After automatic carousel is enabled, the configuration does not take effect immediately. It will take effect after the next carousel.

    Carousel Time

    The interval between the list from the previous page and the next page. Unit: ms.

    Sorting

    The sorting mode of the widget data based on the value. Valid values: Descending and Ascending. Click the 眼睛图标icon to control the display of sorting.

  • Serial Number: the serial number style of the list. You can click the 眼睛图标icon to display or hide the serial number.

    Parameter

    Description

    Text

    The size, color, and font weight of the serial number text.

    Width

    The width of the serial number. Unit: px or %. Enter a unit.

    Interval

    The interval between the sequence number and the content of the carousel. Unit: px.

    Section

    The style of the serial number.

  • Content

    Parameter

    Description

    Text

    The size, color, and font weight of the content text.

    Marquee component

    Use marquee animation effects for overflow text, which can be turned on or off by clicking 眼睛图标the icon.

    Animation Time: the marquee animation time of the overflow text, in ms.

  • Value: the display style of the value field value in the data. You can click the 眼睛图标icon to display or hide the value.

    Parameter

    Description

    Font size

    The size of the numeric text.

    Color

    The color of the numeric text.

    Font weight

    The font weight of the numeric text.

    Interval

    The distance between the numeric text and the content text.

    thousands separator delimiter

    If you turn on the switch, a separator is added every time the value reaches a thousands separator.

    Prefix and Suffix

    The prefix and suffix of the numeric value, including the custom input prefix and suffix content, and the spacing between the numeric value and the left and right sides of the prefix and suffix. The unit is px.

  • Column Chart: the style of the column chart. You can click the 眼睛图标icon to display the chart. 轮播列表的柱状图样式

    Parameter

    Description

    Color

    The color of the column chart.

    Height

    The thickness of the column chart.

  • Streamer: the streamer effect style in the histogram. You can click the 眼睛图标icon to turn the streamer effect on or off. 轮播列表柱状图流光特效样式

    Parameter

    Description

    Color

    The color of the streamer.

    Length

    The length of the streamer.

    Height

    The thickness of the streamer. If the size of the streamer exceeds the size of the bar chart, the value is not displayed.

    Animation Interval

    The interval at which streamer effects are displayed. Unit: ms.

  • line separator: line separator style between rows, you can click 眼睛图标the icon to control the display of line separator. 轮播列表柱状图的分割线样式

    Parameter

    Description

    Color

    The color of the line separator between multiple rows.

    Height

    The thickness of the line separator.

Data Panel

image..png

Configuration field description

Parameter

Description

value

The value of each row in the list corresponds to the length of the column chart. The data is sorted and displayed based on the size of this value value. You can configure the display style of value values in the numeric configuration items.

content

Corresponds to the content of each row on the carousel list.

Table 1. Parameters
ParameterDescription
Controlled ModeIf you turn on the switch, data is not requested when a widget is initialized. Data requests are triggered only based on callback IDs or the method configured in Blueprint Editor. If you turn off the switch, data requests are automatically triggered. By default, the switch is turned off.
Auto Data RequestAfter you select the Auto Data Request check box, you can enable dynamic polling, and manually specify the polling interval. If you do not select this check box, data is not automatically requested. You must manually refresh the page to request data or use Blueprint Editor or callback ID events to trigger data requests.
Data SourceIn the right-side panel of Canvas Editor, click the Data tab. Click Set next to Static Data. In the Configure Datasource panel, select a data source from the Data Source Type drop-down list. Enter code for data query in the code editor, click Preview Data Response to preview the response of the data source, and then view the response. For more information, see Configure asset data.
Data FilterIf you select the Data Filter check box, you can convert the data structure, filter data, and perform simple calculations. If you click the plus sign (+) next to Add Filter, you can configure the script for the data filter in the editor that appears. For more information, see Use the data filter.
Data Response ResultThe response to a data request. If the data source changes, you can click the Refresh icon icon next to Data Response Result to view the data response in real time.

Interaction Panel

This widget does not support interaction events.

Configure interactions in Blueprint Editor

  1. In Canvas Editor, right-click a widget in the Layer panel and select Add to Blueprint Editor.
  2. Click the Blueprint Editor icon icon in the upper-left corner of the page.
  3. In Blueprint Editor, click the List Carousel I widget in the Added Nodes pane. You can view the parameters of the column carousel in Blueprint Editor on the canvas, as shown in the following figure. 轮播列表柱状图蓝图参数

    • Event

      Event

      Description

      When the data interface request is completed

      The event is triggered with the processed JSON data after a data interface request is responded and processed by a filter. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      When a data interface request fails

      The event that is returned when a data interface request fails (the request may be due to network problems or interface errors) and is processed by the filter. The event also throws the processed JSON data. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

    • Policy Action

      Policy Action

      Description

      Request Data Interface

      This action is performed to request the server data again. The data sent by an upstream data processing node or layer node is used as a parameter. For example, if the API data source is https://api.test and the data passed to the request data interface is { id: '1'}, the final request interface is https://api.test?id=1.

      Import data

      After data of a widget is processed in accordance with its drawing format, the widget is imported for redrawing. You do not need to request server data again. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      Update component configurations

      Style configurations of widgets are dynamically updated. Before this action is executed, you must click the widget in Canvas Editor, click the Settings tab in the right-side panel, and click Copy Configurations to... to obtain widget configurations. After that, change the style field for the data processing node in Blueprint Editor.

      Display

      Displays the widget. The following example shows the reference data.

      return {
        "animationType": "",
        "animationDuration": 1000,
        "animationEasing": "linear"
      };

      Hide

      The following example shows how to hide a widget.

      return {
        "animationType": "",
        "animationDuration": 1000,
        "animationEasing": "linear"
      };

      Switch to the hidden state

      Specifies whether to show or hide a widget. The following example shows the reference data.

      return {
        "animationIn": {
          "animationType": "",
          "animationDuration": 1000,
          "animationEasing": "linear"
        },
        "animationOut": {
          "animationType": "",
          "animationDuration": 1000,
          "animationEasing": "linear"
        }
      };

      Move

      Move a widget to a specified location. The following example shows the reference data.

      return {
        // The positioning type. to indicates absolute positioning, whereas by indicates relative positioning. The default value is to. 
        "positionType": "to",
        // The location, which is indicated by the x and y coordinates. 
        "attr": {
          "x": 0,
          "y": 0
        },
        // The animation type. 
        "animation": {
          "enable": false,
          // The duration in which animation is displayed. 
          "animationDuration": 1000,
          // The animation curve, which can be set to linear|easeInOutQuad|easeInOutExpo. 
          "animationEasing": "linear"
        }
      };