Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@nocobase/plugin-data-visualization
Advanced tools
Provides business intelligence and data visualization features
提供BI面板和数据可视化功能。
新版数据可视化插件以Collection为基础,提供了可视化的数据检索、图表配置面板,多个图表可以在同一区块内进行组织,支持以插件形式扩展和使用其他图表组件库。未来还计划支持SQL模式,单个及多个图表的时间、条件筛选,数据下钻,图表与数据区块联动等功能。
配置面板整体上分为三个区块:数据配置,图表配置,图表预览。
度量字段,通常是图表需要展示的核心数据。度量数据可以通过聚合函数进行统计,支持常用的数据库统计函数Sum
, Count
, Avg
, Max
, Min
. 度量字段可以有多个,可以设置别名。
维度字段,通常是图表数据分组的依据。对于日期类型字段,支持如图所示的格式化方式,格式化通过数据库函数实现(例如:MySQL对应date_format
),其他类型数据格式化见数据转换部分。
维度格式化 (Dimensions Format) VS 数据转换 (Transform)
- 维度格式化发生在获取最终数据之前,数据分组按照维度格式化后的值进行,通常在按时间段筛选数据时有此需求。
- 数据转换对响应数据做进一步处理,诸如可读性处理,以展现恰当的数据,数据转换在前端进行。
此处配置将对分组前的数据进行过滤。
目前图表允许的数据集条数上限为2000.
开启缓存后,图表将展示缓存的数据。
使用数据转换可以对接口响应的数据做进一步处理,目前支持转换处理的数据类型为 number
, date
, time
, datetime
, 对于不属于支持的数据类型的字段,可以手动选择为这几个类型,以使用对应的转换方法。
import { ChartLibraryProvider } from '@nocobase/plugin-charts-v2/client';
图表插件提供了ChartLibraryProvider组件,组件接收以下属性:
packages/plugins/charts-v2/src/client/renderer/library/G2PlotLibrary.tsx
FAQs
Provides data visualization feature, including chart block and chart filter block, support line charts, area charts, bar charts and more than a dozen kinds of charts, you can also extend more chart types.
The npm package @nocobase/plugin-data-visualization receives a total of 892 weekly downloads. As such, @nocobase/plugin-data-visualization popularity was classified as not popular.
We found that @nocobase/plugin-data-visualization demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.