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

dg-charts

v0.1.25

Published

dgCharts----更新测试删除grid的宽度

Downloads

165

Readme

输入图片说明

dgCharts

作者:鹤酒、hejiu45

官方文档

介绍:

dgCharts是一个基于Vite 与 Vue3 开发的可视化组件库,由鹤酒(hejiu45)独立开发,如果大家感兴趣也可以加入我们一起开发和完善我们组件库,这是一个简约、简单、易上手的组件库。

安装与卸载:

# 安装
npm i dg-charts

# 卸载
npm uninstall dg-charts

引用方式:

注意:支持vue3

全局 引用:

import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// 手动引用样式
import dgCharts from 'dg-charts'
import '/node_modules/dg-charts/dist/dg-charts.css'

createApp(App).use(dgCharts).mount('#app')

局部 引用

<template>
  <dg-body :imgUrl="bg">
    <dg-header :imgUrl="header" :height="'164px'" color="#369efe" textAlign="center" lineHeight="74px"></dg-header>
    <dg-content :height="'164px'">
      <dg-left paddingLeft="20px">
        <dg-chart flex="1" chartsh="20px" tcolor="#01d2e6" :txtbg="charts02" marginBottom="20px" width="100%"
          :imgUrl="charts01" :chartsOption="chartOptions"></dg-chart>
        <dg-chart flex="1" chartsh="20px" tcolor="#01d2e6" :txtbg="charts02" marginBottom="20px" width="100%"
          :imgUrl="charts01" :chartsOption="chartOptions"></dg-chart>
        <dg-chart flex="1" chartsh="20px" tcolor="#01d2e6" :txtbg="charts02" marginBottom="20px" width="100%"
          :imgUrl="charts01" :chartsOption="chartOptions"></dg-chart>
      </dg-left>
      <dg-center class="imgs">
        <img src="./assets/bg02.png" alt="">
      </dg-center>
      <dg-right paddingRight="20px">
        <dg-chart flex="1" chartsh="20px" tcolor="#01d2e6" :txtbg="charts02" marginBottom="20px" width="100%"
          :imgUrl="charts01" :chartsOption="chartOptions"></dg-chart>
        <dg-chart flex="1" chartsh="20px" tcolor="#01d2e6" :txtbg="charts02" marginBottom="20px" width="100%"
          :imgUrl="charts01" :chartsOption="chartOptions"></dg-chart>
        <dg-chart flex="1" chartsh="20px" tcolor="#01d2e6" :txtbg="charts02" marginBottom="20px" width="100%"
          :imgUrl="charts01" :chartsOption="chartOptions"></dg-chart>
      </dg-right>
    </dg-content>
  </dg-body>
</template>

<script setup>
import { ref, onMounted } from 'vue'
// 资源导入
import bg from "@/assets/bg00.png"
import header from "@/assets/header.png"
import charts01 from "@/assets/charts01.png"
import charts02 from "@/assets/charts02.png"
// 按需导入
import { dgBody, dgHeader, dgContent, dgLeft, dgRight, dgCenter, dgCharts } from "dg-charts"

// echarts 配置
let chartOptions = ref({
  color: '#f40',
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [250, 130, 124, 318, 435, 247, 160],
      type: 'line'
    }
  ]
})
</script> 

<style scoped>
.imgs {
  display: flex;
  justify-content: center;
  align-items: center;
}

.imgs img {
  height: 254px;
}
</style>