Report and chart execution
The report runner renders <we-chart> above <we-report>. Saved chart configuration lives in Report.ReportData.chartLogic; the chart's active value controls whether it is visible on load. The runner's chart button calls the component's public setSettingsOpen(true) method, while the filter button opens a separate panel showing saved standard and cross filters.
environment_modules/standard/we_chart/index.js resolves either a saved reportId or a standalone objectId. For a report, it loads the saved object, filters, cross filters, and related data-source joins before aggregating rows. It filters available chart field paths through field access checks. The component saves report settings through saveChartLogic; standalone chart settings remain local unless declared in its attributes or page configuration.
Aggregation occurs after the authorized query. The server rejects a chart matching more than 50,000 rows, and normalizes its category limit to 1–100. Chart types include bar, line, area, pie, donut, scatter, and funnel; funnel values are nonnegative stage totals, not transitions. The browser loads a local ECharts asset from /js/vendor/echarts.min.js.
The report table's we_report module supplies display columns, grouped-row spans, lookup column metadata, and name-column metadata. The browser component uses those to merge grouped cells and create record links when an ID is available. The report controller normalizes at most two related data sources and applies their joins.
Source: views/report-runner.ejs, public/js/report.js, environment_modules/standard/we_chart, environment_modules/standard/we_report, and controllers/reportController.js.