A single value chart highlights a single value. Types of single value charts includes: A rectangle frame is displayed by default. A rectangle frame is the simplest and most direct data representation, which visually and clearly displays the data at a certain point. It is generally used to represent the key information at a certain point in time. To display the proportional type indicator, you can use a dial.

Basic components

  • Text
  • Unit (optional)
  • Description (optional)
  • Chart types

Configuration

  • Rectangle frame configuration instructions:
    Rectangle frame configuration Description
    Chart type Rectangle frame
    Value column By default, the first line of data in this column is displayed.
    Text The attribute configurations related to the text, including:
    • Font size (12 px –100 px)
    • Unit
    • Unit font size (12 px–100 px)
    • Description
    • Description font size (12 px–100 px)
    Color Colors in the diagram, including:
    • Font color
    • Background color
  • Dial configuration instructions:
    Dial configuration category Configuration Description
    Chart type Dial Displays query results in a dial.
    Value column Actual value By default, the first line of data in this column is displayed.
    Unit The unit of values in the dial.
    Dial maximum The maximum value displayed on the dial. The default is 100.
    Colored regions The dial is divided into several value regions. Each region is displayed in a different color.

    The maximum number of colored regions is 5. The default is 3.

    Region max value The maximum value of each region on the dial. By default, the maximum value of the last region is the maximum value on the dial and you do not need to specify this value.
    Note By default, three colored regions divide the dial evenly. Changing the number of colored regions does not change the value range of each default colored region. Therefore, set the maximum value for each colored region based on your needs.
    Show title

    You can add a single value chart of the dial type in the dashboard. By using Show Title, you can display or hide the title of a single value chart in the dial form on the dashboard page. The item is disabled by default, that is, the dial title is not displayed.

    Clicking the enable button does not display the title on the current page. The title is displayed on the dashboard page after you create a report or modify the current report.

    Text Font size The font size of the text, in the range of 12 px–100 px.
    Description The value description.
    Description font size The font size of description content, in the range of 12 px–100 px.
    Color Region color By default, the dial has three regions which are in colors of blue, yellow, and red respectively.

    If you change the Colored Regions to a value greater than 3, the added regions are blue by default. You can change the color of each region.

    Font color Colors of values displayed in the dial.
  • Compare numb chart configuration instructions
    Configuration category Configuration Description
    Chart types Compare numb chart Displays query results in a compare numb chart
    Value column Show value A value displayed in the center of the compare numb chart. This value is generally set to the statistical result of the current time period in the compare numb function
    Compare value A value used to compare with the threshold. This value is typically set to the comparison result between the current time period and the previous time period in the compare numb chart.
    Trend comparison threshold A value used to measure the variation trend of a compare value.
    Text Font size The font size of the show value, in the range of 12 px–100 px.
    Unit The unit of the show value.
    Unit font size The font size of the unit of the show value, in the range of 12 px–100 px.
    Compare unit The unit of the compare value.
    Compare font size The font size of the compare value and its unit, in the range of 12 px–100 px.
    Description A description of the displayed value and its growth trends, which is displayed below the value.
    Description font size The font size of the value description, in the range of 12 px–100 px.
    Color Font color Font color of the show value
    Growth font color The font color of the compare value that is greater than the threshold.
    Growth background color The background color displayed when the compare value is greater than the threshold.
    Decrease font color The font color of the compare value that is less than the threshold.
    Decrease background color The background color displayed when the compare value is less than the threshold.
    Equal background color The background color displayed when the compare value is equal to the threshold.

Procedure

  1. On the query page, enter the query statement in the search box, select the time interval, and click Search.
  2. Select the single value chart .
  3. Select a chart type based on your needs, and configure chart properties.
    Note A Log Service single value chart automatically performs normalization based on the numerical size. For example, 230000 is processed as 230K. To define your own numeric format, please define the format in real-time analysis through Mathematical calculation functions.

Examples

Execute the following query analysis statement to view the number of visits and display analysis results in diagrams:

  • Rectangle frame
    * | select count(1) as pv


  • Dial
    * | select count(1) as pv


     
  • Compare numb chart
    View the comparison of today visits and yesterday visits:
    * | select diff[1],diff[2], diff[1]-diff[2] from (select compare( pv , 86400) as diff from (select count(1) as pv from log))