npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dfsj/echarts

v4.0.0-alpha.9

Published

专业的水文曲线组件或构造函数以及通用的echart二次封装图表

Downloads

671

Readme

@dfsj/echarts

ECharts 二次封装库,提供水文/工程领域的专业图表组件(库容曲线、断面图、降雨分析等)

version license

简介

@dfsj/echarts 是基于 ECharts 的水文工程领域专业图表库,提供库容曲线、断面图、降雨分析、水位流量关系等 10+ 种专业图表 Hooks,封装了统一的数据配置规范和主题体系。

主要功能

  • useECharts - 统一的 ECharts 初始化与管理
  • useAssist - ECharts 配置项转换工具
  • useCapacity - 库容曲线图表
  • useDrainageCurves - 泄洪曲线图表
  • useComplexHydrology - 复杂水文图表
  • useCrossSection - 横断面示意图
  • useDamSchematic - 大坝示意图
  • useStageflow - 水位流量关系图
  • useRainfall - 降雨量分析图
  • useHydrology - 基础水文图表

安装

pnpm add @dfsj/echarts

快速开始

<template>
  <div ref="chartRef" style="width: 600px; height: 400px"></div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { useECharts } from '@dfsj/echarts'

const chartRef = ref<HTMLDivElement>()
const { setOptions } = useECharts(chartRef)

setOptions({
  xAxis: { type: 'category' },
  yAxis: { type: 'value' },
  series: [{ type: 'bar', data: [120, 200, 150] }]
})
</script>

主要导出

| 导出名 | 类型 | 说明 | |:------|:-----|:-----| | useECharts | Function | 初始化 ECharts 实例 | | useAssist | Function | 配置转换工具 | | useCapacity | Function | 库容曲线 | | useCrossSection | Function | 横断面图 |

完整 API 文档请查看 在线文档站

使用要求

| 环境 | 要求 | |:-----|:-----| | Node.js | >=18.12.0 | | 框架依赖 | Vue >=3.3, echarts >=5.x |

开发指南

git clone http://10.10.12.18/dfsj/dfsj
pnpm install
cd packages/echarts
pnpm watch

文档

许可证

MIT

Copyright (c) 2022 - present yangbo