Histograms

Updated at:

A histogram visualizes the frequency distribution of continuous data. It helps you understand key characteristics of your dataset, such as central tendency, dispersion, skewness, and kurtosis. This topic describes how to add data to a histogram and customize its style.

Prerequisites

You have created a dashboard. For more information, see Create a dashboard.

Overview

A histogram divides a data range into a series of continuous intervals and displays the count of data points in each interval as rectangular bars. This visually represents the data distribution and the differences between data groups.image

  • Bins: A series of continuous, non-overlapping intervals that divide a data range.

  • Frequency: The count of data points within each bin.

  • Rectangular bars: Each bar represents the frequency in a bin. The width of the bar corresponds to the size of the bin, and its height represents the frequency of values within that bin.

Use cases

Common use cases for histograms include:

  • Analyzing central tendency, for example, by analyzing the average customer satisfaction score for a product or service.

  • Analyzing data distribution, for example, by viewing the distribution of student test scores to evaluate teaching effectiveness.

  • Analyzing data dispersion, for example, by examining the temperature range in a geographical region to understand climate stability.

  • Analyzing data skewness, for example, by understanding the product preferences of consumers at different income levels.

  • Identifying outliers, for example, by monitoring product quality to detect items that fall outside the standard range.

Benefits

  • Customizable visuals: You can customize the chart style to display data more intuitively and add auxiliary elements, such as a legend, an overview axis, and a tooltip.

  • Annotation capabilities: You can add custom annotations and endnotes, and configure redirects to external URLs to enable interaction between data and other systems.

  • Interactive features: It supports interactions such as drill-down, linkage, redirect (only if a color legend is present), dimension and measure filtering, and in-table filtering.

Example

image

A histogram can provide the following information:

  • Skewness: An asymmetrical histogram indicates a skewed data distribution.

    • A histogram is right-skewed (positive skew) when its long tail is on the right, indicating that most of the data is concentrated on the left.

    • A histogram is left-skewed (negative skew) when its long tail is on the left, indicating that most of the data is concentrated on the right.

  • Central tendency: The shape of the histogram helps you estimate the positions of the mean, median, and mode to understand the dataset's central tendency.

    • For a symmetrical distribution, the mean, median, and mode are roughly equal and located at the center of the histogram.

    • For a right-skewed distribution, where most data is on the left, the mean is greater than the median, and the mode is on the left side of the histogram.

    • For a left-skewed distribution, where most data is on the right, the mean is less than the median, and the mode is on the right side of the histogram.

  • Dispersion: You can assess the dispersion of the data by observing the overall width of the histogram and the variation in bar height.

  • Outliers: If one or more bars are far from the others, it may indicate outliers.

  • Kurtosis: The sharpness or flatness of the histogram reflects the dataset's kurtosis. A sharp peak indicates that the data is more concentrated, while a flat shape indicates a more uniform distribution.

Configure chart fields

This section uses an analysis of order quantity by product type as an example to demonstrate how to configure fields.

  1. In the Data panel, select the required fields and add them to the corresponding sections on the Fields tab by double-clicking or dragging.image

    • In the Value Axis/Measures section, add the primary measure for your analysis.

      For this example, drag the Order Quantity field to this section.

  2. Click Update to refresh the chart.image

  3. (Optional) To analyze your data by a specific dimension, add a dimension field to the Color Legend/Dimensions section. The chart bars will be segmented based on the values in this field. For example, you can analyze the order quantity by product type.

    In this example, drag the Product Type field to this section to break down the order quantity by product type.image

  4. (Optional) For multi-dimensional analysis, you can add a dimension field to the Split/Dimensions section. This displays the data in a faceted view by dimension value.

    In this example, drag the report_date(year) field to view order quantities by year.image

    Note

    You can add only one dimension field for splitting. The facet mode has the following limitations:

    • Style: The overview axis is not available in the Auxiliary Display settings.

    • Analysis: Only Data Interaction is supported. Advanced settings, Analysis and Warning, Annotation, and Smart Insights are not available.

  5. (Optional) To view data for a specific measure in the tooltip, add the measure to the Tooltip/Measures section.image

  6. (Optional) To filter the displayed data, drag the field you want to filter by into the Filter section. For example, to filter out data from certain regions, drag the Region field to the Filter section and click the image icon. In the Set Filter window, select the data you want to display.image

  7. (Optional) Auto Refresh

    Enable this option to automatically refresh the chart data. For example, if you set the duration to 5 and the unit to minutes, the chart data will refresh every 5 minutes.image

Configure chart style

The following sections describe how to configure the chart style. For general settings related to the Title and Card, see Configure the title and card.

image

Drawing area

On the Style tab, in the Drawing Area section, you can customize the style of the histogram's bars.

image

Parameter

Description

Bar Color

Sets the color scheme for the bars and allows you to enable a gradient effect.111

Bin Calculation Method

A bin is a group of data represented by a rectangular bar. The number of bars is the bin count, and the width of each bar is the bin width. You can set the calculation method to Auto, Custom Bin Width, or Custom Bin Count.

  • Auto: The system automatically groups the data.

  • Custom Bin Width: Calculates and generates bars based on a specified interval and starting value. The maximum number of bins is 50.image

  • Custom Bin Count: Generates the bin width based on a specified number of bins. The maximum number of bins is 50.image

Display Bin Value

Shows or hides the bin value and sets its display position, such as next to the X-axis title or above the chart.111

Facet

In facet mode, use the Facet settings to configure the layout and style of the chart arrangement.

Note

Facet mode is active only when a field is configured in the Split/Dimensions section.

image

Parameter

Description

Layout Style

Sets the chart layout. Supported modes are Single-column Comparison and Grid Distribution.

Share Axes

Specifies whether the charts share a common axis.

111

Show Split Line

Shows or hides a split line between charts.

If enabled, you can configure the color and style of the split line.111

Columns

When the layout style is set to Grid Distribution, you can set the number of columns for the chart arrangement.

By default, this is set to Auto, but you can also customize the number of columns.111

Note
  • The number of columns for the PC and mobile versions must be configured separately. You can switch the device type to configure by using the image icon at the top of the page.

  • The number of columns can be set from 1 to 6 for PC and 1 to 3 for mobile.

Minimum Facet Block Width/Height

Sets the minimum width and height for each chart. The available options vary by layout style.

  • Single-line Comparison, Grid Distribution with Auto columns: You can only configure the minimum width of the facet block.

  • Grid Distribution with custom columns: You can configure both the minimum width and height of the facet block.

Row/Column Spacing

Sets the spacing between rows and columns of charts. The available options vary by layout style.

  • Single-line Comparison: You can only configure the column spacing between charts.

  • Grid Distribution: You can configure both row and column spacing between charts.

Split Label

Position

Sets the display position of the dimension value label. Options are Above Chart or Below Chart.111

Text

Sets the font color and style for the dimension value label.111

Align

Sets the alignment of the dimension value label.

Axes

On the Style tab, in the Axes section, you can configure the axis styles. By default, axes are visible.

image

Parameter

Setting

Description

X-axis

Show X-axis

Shows or hides the X-axis.image

Show Title and Unit

Shows or hides the Title and Unit on the X-axis. You can customize their text and style.

Show Axis Label

Shows or hides labels on the X-axis. If enabled, you can set the Axis Label Display Format and Text Style. You can set the format to Auto or Custom.

  • The default mode is Auto. In this mode, the axis label inherits the data display format of the measure field.

  • In Custom mode, click the image icon to open the Data Display Format Settings dialog box and configure the format. For more information about the settings, see Data Display Format > Custom.

Show Tick Line

Shows or hides tick marks on the X-axis.

Show Axis

Shows or hides the X-axis line. If enabled, you can customize the axis style, including line type, width, and color.

Show Grid Line

Shows or hides gridlines for the X-axis. If enabled, you can customize the gridline style, including line type, width, and color.

Left Y-axis

Show Left Y-axis

Shows or hides the left Y-axis.image

Invert Y-axis

Specifies whether to invert the Y-axis.111

Show Title and Unit

Shows or hides the Title and Unit on the left Y-axis. You can customize their text and style.

Show Axis Label

Shows or hides labels on the left Y-axis. If enabled, you can set the Axis Label Display Format and Text Style. You can set the format to Auto or Custom.

  • The default mode is Auto. In this mode, axis labels are displayed as integers.

  • In Custom mode, click the image icon to open the Data Display Format Settings dialog box and configure the format. For more information about the settings, see Data Display Format > Custom.

Show Tick Line

Shows or hides tick marks on the left Y-axis.

Show Axis

Shows or hides the left Y-axis line. If enabled, you can customize the axis style, including line type, width, and color.

Show Grid Line

Shows or hides gridlines for the left Y-axis. If enabled, you can customize the gridline style, including line type, width, and color.

Legend

In the Legend section, click the image icon to enable the chart legend and configure its style.image

Parameter

Description

Position

Sets the position and alignment of the legend.

  • If you select Top or Bottom for the position, you can set the alignment to left, center, or right.

  • If you select Left or Right, you can align the legend to the top, center, or bottom, and set its distance from the chart.

Text

Sets the style of the legend text, including font color, size, weight, and whether it is italicized.

Mobile Legend

The legend settings for PC and mobile are independent. You can switch to the mobile editing view by using the PC/mobile toggle button (image) at the top of the dashboard editor to set a suitable legend for mobile devices. You can customize the position and text style of the mobile legend.image

Data label

In the Data Label section, you can choose whether to show data labels and configure their style.

Note

The Position and Text settings here apply to all data labels. You can configure data labels and their formats for individual measures or dimension values in the series settings.

image

Parameter

Description

Display All

When you enable this option, the system intelligently adjusts label positions to prevent them from overlapping. However, if there are too many data labels, some may be hidden if they extend beyond the axis area. You can also select Allow Data Label Overlap.

Content

Sets the data content to display in the chart, including measures, percentages, and statistics. When you choose to display percentage data, you can also set the Percentage Decimal Places to 0, 1, or 2.

Position

Sets the display position of the data labels. Options include Auto, Outer Top, Inner Top, Inner Bottom, Inner Center, and Inner Left.

Text

Sets the text format for the data labels.

Tooltip

In the Tooltip section, click the image icon to enable tooltips and configure their style.

image

Parameter

Description

Display Mode

Sets the tooltip display mode. You can choose By Single Data Point or By Dimension Value.

  • By Single Data Point: Displays data associated with the data point you hover over.

  • By Dimension Value: Displays all data under the same dimension value.

Content

Selects the data content to display in the tooltip. The available options vary based on the display mode:

When the display mode is By Single Data Point, Percentage is supported. When the display mode is By Dimension Value, Total and Percentage are supported.

  • Percentage: The percentage of a data point relative to the total within the current dimension. When you choose to display percentage data, you can also set the Percentage Decimal Places to 0, 1, or 2.

  • Total: The sum of all measures under the current dimension. For example, the total sales amount for all regions in 2025.

Background Color

Sets the background fill color of the tooltip.

Text

Sets the style of the text in the tooltip, including font color, size, weight, and whether it is italicized.

Mobile Tooltip

The tooltip toggle for PC and mobile are independent. You can switch to the mobile editing view using the PC/mobile toggle button (image) at the top of the dashboard editor to edit the mobile tooltip. Font size can be set separately for PC and mobile, while other styles are shared.image

Series settings

In the series settings, you can configure the style for each series.

  • If a field is configured in the Color Legend/Dimensions section on the Fields tab:image

    Parameter

    Description

    Select Field

    Select the measure or dimension value for which you want to configure the label format.

    Alias

    Sets a custom field name that suits your business scenario.

    Show Data Label

    Shows or hides data labels and sets their position and text format.

    Series Value Display Format Settings

    Configures the display format for series values. You can select Auto or Custom.

    Note

    The format configured here only applies to the frequency.

    • Auto: This is the default option. The series values inherit the display format of the Y-axis label.

    • Custom: Click the image icon to open the Data Display Format Settings dialog box and configure the format. For more information about the settings, see Data Display Format > Custom.

  • If no field is configured in the Color Legend/Dimensions section on the Fields tab:image

    Parameter

    Description

    Select Field

    Select the measure or dimension value for which you want to configure the label format.

    Show Data Label

    Shows or hides data labels and sets their position and text format.

    Display Max/Min Values

    Shows or hides labels for the maximum and minimum values in the chart. If enabled, you can set the label's Position in the chart, the Display Content (maximum/minimum value), the Background Fill Color, and the Text Style.

Auxiliary display

On the Style tab, in the Auxiliary Display section, you can configure metric filter display and the overview axis.image

Parameter

Description

Enable Metric Filter Display

Enables or disables the in-chart metric filter. If enabled, you can also set the default selected metric field.

View Controls

If a large amount of dense data on the chart axis cannot be fully displayed within the container, you can click the image icon to enable view controls. These controls let you dynamically adjust the visible range of the chart by scrolling, ensuring both data integrity and readability.

You can control the visible range on the chart axis using the following control types: overview axis and scroll bar.

  • If you select overview axis, a simplified trend chart of the full dataset (the overview axis) is displayed at the bottom of the chart. You can drag the selection area to quickly browse all data or focus on a specific range. The overview axis uses absolute coordinates, meaning the selected interval corresponds directly to a fixed number of data bars on the actual axis. This is suitable for comparative analysis or complex scenarios requiring direct navigation.image By default, the overview axis is displayed only when the data volume exceeds the chart container's display width. If you want the overview axis to be always visible, select Always Show. The overview axis will then be displayed even if the chart data does not exceed the container's width.

  • If you select scroll bar, a horizontal scroll bar is displayed at the bottom of the chart. You can drag the slider left or right to move the view window. The scroll bar uses a relative scale, meaning the slider's length and position are determined by the ratio of the visible window to the total data range. This is suitable for general browsing scenarios.image You can also set a minimum category width to limit the amount of data in the current window, ensuring clarity and preventing visual clutter from overlapping labels or dense data points. The default minimum category width is 32 px, with a valid range of 16 px to 100 px.

    After setting a minimum category width, the scroll bar will appear if the chart's allocated category width is less than this value. When the scroll bar is enabled, chart elements and data labels are constrained within the rectangular area of the coordinate system. Any overflowing parts (such as markers or data labels) are automatically truncated or repositioned to fit.

Note

If no view controls are configured for the chart and the chart size is too small, the system automatically enables view controls, selects overview axis, and displays it only when the data volume exceeds the container width.

Configure chart analysis

Parameter

Setting

Description

Data Interaction

Drill Down

If you have configured drill-down fields on the Fields tab, you can set the display style for the drill-down level rows here. For more information, see Drill Down.

Linkage

If the data you need to analyze is in different charts, you can use chart linkage to connect multiple charts for data analysis. For more information, see Linkage.

Redirect

If the data you need to analyze is across multiple dashboards, you can use dashboard redirection to connect them for data analysis. Redirection includes three types: Intra-product Redirect, In-page Component, and External Link. For more information, see Redirect.

Analysis and Warning

Reference Line

You can use a reference line to see the difference between the current measure value and a set value. The reference line value can be a fixed value or a calculated value. Calculated values include average, maximum, minimum, and median. For more information, see Reference Line.

Annotation

-

Use annotations—such as color highlights, icons, and comments—to draw attention to anomalies or noteworthy data points. This helps you identify anomalies and take appropriate action. For more information, see Annotation.

Next steps

  • To allow others to view the dashboard, you can share it with specific people. For more information, see Share a dashboard.

  • To create a complex, navigation-enabled report for thematic analysis, you can integrate your dashboards into a data portal. For more information, see Create a PC data portal.