bricks/dist/docs/en/pie.md
yumoqing 2e22085122 feat: 401后登录成功自动重试原始请求
- withLoginInfo 改为接收完整 opts(含 method/headers/params)
- 等待 login_window 的 destroy 事件(=登录成功信号)
- 登录成功后重试原始请求
- 重试仍401则返回null(避免死循环)
- 用户手动关闭登录窗口时也触发重试,401则返回null
2026-05-27 15:39:34 +08:00

1.6 KiB

ChartPie

Control Functionality: Used to display pie chart data visualization. Supports generating interactive ECharts pie charts through configuration of data sources, field mapping, and chart options.
Type: Standard control
Parent Control: bricks.EchartsExt

Initialization Parameters

Parameter Name Type Description
title string Chart title displayed at the top of the chart
description string Description information for the chart, can be used for hints or supplementary explanations
legend object Legend configuration options, controlling display properties such as position and style
pie_options object Custom configuration options for the pie series, such as radius, label formatting, etc.
data_url string Data request URL used to fetch the data required for the chart
nameField string Field name in the data used as the name for pie chart items
valueFields array Array of field names in the data used as values for the pie chart (typically the first field is used)
data_params object Additional parameters sent with the data request, combined with data_url
data array Static data array; if provided, this data will be used instead of loading from data_url

Main Events

  • element_click
    Triggered when a user clicks on a data item in the pie chart.
    The callback includes information about the clicked item, such as name and value, which can be used to implement drill-down or detail display functionality.