@step-city/echarts-liquidfill
v1.0.3
Published
水球波纹图
Downloads
517
Readme
@step-city/echarts-liquidfill
安装
pnpm add @step-city/echarts-liquidfillpeer 依赖:echarts ^6.0.0。
使用
import * as echarts from "echarts/core";
import { installLiquidFill } from "@step-city/echarts-liquidfill";
echarts.use([/* 你的其他图表/组件/渲染器 */]);
installLiquidFill(); // 在 echarts.init 之前调用一次
const chart = echarts.init(document.getElementById("main"));
chart.setOption({
series: [{ type: "liquidFill", data: [0.6] }],
});series type: 'liquidFill' 的全部配置项与官方 [email protected] 保持一致(center / radius / amplitude / waveLength / phase / period / direction / shape / outline / backgroundStyle / label 等)。
源与许可
本包是 ecomfe/echarts-liquidfill 的衍生版本, 原始代码版权归 Copyright (c) 2020, Baidu Inc. 所有,采用 BSD-3-Clause License。
相对官方包只有两处改动:统一改走 echarts/core;把注册逻辑包装为显式 installLiquidFill()。
非官方 fork,与 Baidu Inc.、Apache ECharts 团队、ecomfe 组织均无隶属、赞助或背书关系。 许可证全文见包内 LICENSE,各源文件头部亦保留了版权声明。
