All Products
Search
Document Center

Quick BI:Date picker

Last Updated:Sep 26, 2023

A date picker is a type of interactive widget. It allows you to customize the size, color, text style, and query conditions of a date picker in various states. You can configure it interactively and use it with other widgets to display the content that you configure in a visual chart. This topic describes how to add and manage a date picker widget.

Prerequisites

A data dashboard is created. For more information, see create a Visualization Screen task.

Add a date picker

On the dashboard edit page, click Interactive in the top navigation bar to add a date picker. image.png

Data import

In the data configuration section of the interactive widget, you can configure query parameters, configure query conditions, and bind parameters to effective layers.

Configure query parameters

You can drag a date field from a dataset to a date picker. The date granularity is year, quarter, month, or day. You can drag only one dimension.

image.png

Configure a filter

You can configure Time Range, Filter Method, and Default Value. The entry for configuring query conditions is as follows:

image.png
  1. Set Time Range: You can specify a time range to filter. You can select Start At, End At, or Time Interval. The following example shows how to set the time interval to 2020 to 2023. image.pngWhen you click the date picker, the time range that can be selected is from 2020 to 2023. The configuration effect is as follows: image.png

  2. Filter By: You can specify a time range or a time interval.

    1. Single time: image.png

    2. Time Interval (Start at, End at, and Time Interval are supported. Shortcut Interval is not supported.) image.png

  3. Default value:

    1. Single Time: image.png

    2. Time Interval: image.png

Style Settings

Location and size

You can configure the components in the configuration section as follows:

  • Adjust the alignment of components: supports left alignment, center alignment, and right alignment.

  • Adjust the size of the widget: Use the upper-left corner as the origin, set the values of the X and Y axes, and adjust the position.

  • Adjust the angle of the widget: Set the value of the rotation angle.

  • Resize the widget: Set the values of W and H to adjust the width and height of the widget.

  • Lock the component: After locking the component, you will not be able to adjust the size and position of the component.

image.png

Text Style

You can configure the widget text in the configuration section as follows:

  • Adjust the font style of the widget text: You can set the font, color, font size, bold, and oblique text.

  • Adjust the background of a widget: You can set the background fill color of a widget.

  • Adjust the border of a widget: You can set the style, color, and width of the widget border.

  • Adjust the corner radius of a widget: You can set the corner radius of the widget border.

image.png