Biểu đồ

Biểu đồ trình bày dữ liệu một cách trực quan, giúp chúng trở thành cách thân thiện với người dùng để hiển thị các mẫu, xu hướng và mối quan hệ giữa dữ liệu.

Tạo biểu đồ

Để tạo biểu đồ thủ công:

  1. Select the cells containing the data to represent using a chart.

  2. Click Insert ‣ Chart from the menu bar.

    Ghi chú

    Odoo uses the most appropriate chart type for the selected data; this can be changed in the Configuration tab of the chart properties.

Once the chart has been created, it can be customized via the chart properties.

Tùy chỉnh biểu đồ

A chart that has been created manually or inserted from an Odoo graph view can be further customized via the chart properties, which open in a panel to the right of the spreadsheet.

Here, it is possible to modify various aspects of the chart's configuration and design via the Configuration and Design tabs respectively.

Mẹo

Có thể truy cập thuộc tính của biểu đồ bất kỳ lúc nào, như sau:

  • For any chart, whether manually created or inserted from an Odoo view, hover over the chart, click the (menu) icon, then click Edit.

  • For a chart inserted from an Odoo graph view, click Data on the menu bar, then select the relevant chart from the Charts section.

Tab cấu hình

The Configuration tab includes the following fields:

  • Chart type: the type of chart. For a chart that has been:

    • tạo thủ công, đây là loại biểu đồ mặc định được Odoo đề xuất;

    • inserted from an Odoo graph view, this is by default the type of chart selected in the graph view before the chart was inserted into the spreadsheet.

    Click the dropdown menu to select a different chart type.

  • Model and Domain: for a chart inserted from an Odoo graph view, the model from which the data has been extracted and rules used to determine which records are shown, respectively. Click Edit domain to add or edit rules.

  • Liên kết đến menu Odoo: để thêm một liên kết có thể nhấp từ biểu đồ đến một mục menu Odoo, tức là một chế độ xem cụ thể của một mô hình.

Depending on the chart type, other fields may also be displayed.

Các loại biểu đồ

Khi một biểu đồ:

Biểu tượng biểu đồ đường

Đường: tốt nhất để hiển thị xu hướng hoặc thay đổi theo thời gian, chẳng hạn như tăng trưởng doanh số qua các tháng hoặc biến đổi nhiệt độ.

Biểu tượng biểu đồ đường xếp chồng

Đường xếp chồng: hữu ích để trực quan hóa xu hướng tích lũy khi nhiều chuỗi đóng góp vào tổng thể, như doanh thu theo phòng ban theo thời gian.

Biểu tượng biểu đồ kết hợp

Kết hợp: kết hợp nhiều loại biểu đồ (ví dụ: cột và đường) để so sánh các loại dữ liệu khác nhau hoặc làm nổi bật các chỉ số chính cùng với xu hướng.

Tab Thiết kế

The Design tab contains several sections, depending on the type of chart. The fields and options available within sections may also vary depending on the chart type.

General

The General section allows the following elements to be modified:

  • Background color: Add or change the background color by clicking the color dot, then choosing the desired color.

  • Tiêu đề biểu đồ: Chỉnh sửa tiêu đề biểu đồ nếu cần. Định dạng phông chữ, căn chỉnh ngang, kích thước phông chữ và màu sắc của tiêu đề có thể được sửa đổi bằng trình chỉnh sửa.

  • Vị trí chú giải: Thay đổi vị trí của chú giải hoặc chọn không có chú giải.

  • Show values: Add numeric values to the data points on the chart.

  • Zoom: Enable Show slicer to be able to zoom in on a portion of the horizontal axis and scroll forwards and backwards.

  • Number formatting: Enable Use compact format to display, e.g., $200k instead of $200,000.00.

Mẹo

To choose a color from the color selector, use one of the following methods:

  • select one of the standard colors

  • click the (plus) icon to manually select a custom color

  • click the (dropper) icon to copy any color from the device's screen

Annotation

The Annotation section allows the addition of Text to provide context or additional information about the chart and/or a See more link.

Mẹo

Annotations added to a chart can be viewed by hovering over the chart, then clicking the (Chart Info) icon in the top right corner.

Data Series

The Data Series section allows the following elements to be modified:

  • Series color: With the relevant data series selected, change the color of the related data points on the chart by clicking on the color dot and choosing the desired color.

  • Tên chuỗi: Chỉnh sửa tên của chuỗi dữ liệu nếu cần.

  • Series type: For each data series of a Combo chart, determine whether the series is shown as a Bar or Line.

  • Trục dọc: Đối với chuỗi dữ liệu đã chọn của biểu đồ Đường, Vùng, hoặc Cột, chọn xem nó nên được hiển thị trên trục dọc Trái (chính) hay Phải (phụ).

  • Trend line: With the relevant data series selected, enable Show trend line then select the Type of trend line: Linear, Exponential, Polynomial, Logarithmic, or Trailing moving average. To change the color of the trend line, click the color dot, then choose the desired color.

Axes

The Axes section allows the following elements to be modified:

  • Axis title: Add a title to the Horizontal axis or Vertical axis. The font formatting, horizontal alignment, font size, and color of the title can be modified using the editor.

  • For horizontal or vertical axes that display numerical scales, it is also possible to modify the following elements:

    • Axis range: To restrict the range shown by an axis, enter a minimum and/or maximum value. This can be used, for example, to avoid having empty space at the bottom of a chart if all the values are well above zero, or to focus on a specific range of data.

    • Gridlines: By default, only major horizonal/vertical gridlines are shown. Enable minor horizonal/vertical gridlines if desired.

Pie Slice

The Pie Slice section allows the color of pie chart slices, or categories of data, to be modified. With the relevant data series selected, change the color of the related pie chart slice by clicking the color dot and choosing the desired color.

Other chart type-specific sections

Sunburst, treemap, bubble, gauge, scorecard, waterfall, geo, funnel, and calendar charts have dedicated design sections.

Quản lý biểu đồ

Basic actions

Hover over a chart, then click the (menu) icon to reveal the following options:

  • Edit to open the chart's properties, where various aspects of the chart's configuration and design can be customized.

  • Copy or Cut to copy or cut a chart with the intention of pasting it within the same spreadsheet. Alternatively, with the chart selected, use the relevant keyboard shortcut to copy or cut the chart.

    Dán biểu đồ vào vị trí mong muốn bằng cách nhấp vào Chỉnh sửa ‣ Dán từ thanh menu hoặc sử dụng phím tắt bàn phím tương ứng.

    Ghi chú

    For a chart inserted from an Odoo graph view, copying/cutting and pasting a chart in this way maintains the link between the chart and the database. The data in the pasted chart remains up-to-date, and clicking on a data point opens the related list view in the database.

  • Copy as image to copy an image of a chart to the clipboard with the intention of pasting it in any location within or outside the spreadsheet.

    Dán hình ảnh vào vị trí mong muốn bằng cách sử dụng chức năng dán của chương trình đích hoặc phím tắt bàn phím tương ứng.

    Ghi chú

    For a chart inserted from an Odoo graph view, copying and pasting a static image of a chart implies there is no longer any link between the chart and the database.

  • Download to download an image of the chart as a PNG file.

  • Delete to delete a chart from the spreadsheet. Alternatively, use the relevant keyboard command to delete a chart.

    Ghi chú

    Đối với biểu đồ được chèn từ chế độ xem biểu đồ Odoo, việc xóa biểu đồ cũng xóa nguồn dữ liệu cơ bản của biểu đồ.

Reposition or resize charts

Reposition a chart within the same sheet by dragging it to the desired position; to reposition multiple items at once, e.g., images, charts, or carousels, hold CTRL or SHIFT (or Command), select the items, then drag them to the desired position.

Resize a chart by selecting it, then dragging the blue markers until the chart is the desired size.

Resize a chart using the blue markers