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

synapsis-itp

v1.8.6

Published

Biblioteca de dashboard interativo com Apache ECharts e TanStack Table, com suporte a filtros dinâmicos

Downloads

179

Readme

📊 Biblioteca de Dashboard Interativo

Uma biblioteca JavaScript para criação de dashboards dinâmicos utilizando Apache ECharts, com suporte a filtros, estatísticas automáticas e visualizações interativas de performance e satisfação.


✅ Visão Geral

Esta biblioteca oferece:

  • 📊 Gráficos Dinâmicos: barras, pizza, linha do tempo (empilhado);
  • 📈 Estatísticas Automáticas: média, mediana, moda, mínimo, máximo, desvio padrão;
  • 🎯 Filtros Interativos: por prioridade, nota e atendente, com clique e duplo clique;
  • ⚙️ Integração Simples: via window.dashboardConfig;
  • 📱 Responsivo: adapta-se automaticamente ao tamanho da tela;
  • 🧩 Personalizável: formatação de rótulos, cores, tooltips e mais.

🚀 Instalação e Uso

  1. Inclua os scripts no HTML:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script>
<script src="caminho/para/sua-biblioteca.js"></script>
  1. Configure o window.dashboardConfig antes do DOM ser carregado:
<script>
window.dashboardConfig = {
  // veja documentação completa para todos os parâmetros
};
</script>
  1. Estrutura mínima do HTML:
<div id="chartEstatisticas"></div>
<div id="chartPerformance"></div>
<div id="chartTimeline"></div>
<div id="chartPrioridade"></div>
<div id="chartSatisfacao"></div>

<select id="filtroPrioridade"></select>

📈 Recursos e Funcionalidades

✅ Estatísticas Calculadas Automaticamente

  • Média
  • Mediana
  • Moda
  • Mínimo / Máximo
  • Desvio padrão
  • Visualização em tabela e gráfico de barras

✅ Filtros Dinâmicos

  • Por Atendente (gráfico de barras)
  • Por Prioridade (pizza)
  • Por Satisfação (pizza rose)
  • Clique aplica filtro, duplo clique limpa filtros

✅ Tipos de Gráficos

| Tipo | Aplicações | |------------|--------------------------------| | Barras | Performance, Estatísticas | | Pizza | Prioridade, Satisfação | | Empilhado | Linha do Tempo de Atendimentos |


📁 Formato Esperado dos Dados

[
  {
    "codigo_atendimento": "AT001",
    "data_atendimento": "2025-01-10",
    "tempo_inicio_hrs": 0.5,
    "tempo_resolucao_hrs": 3.2,
    "atendente": "João",
    "prioridade": "Alta",
    "nota": "Boa"
  }
]

📌 Eventos e Interações

  • click em gráficos → aplica filtro
  • dblclick (duplo clique) → remove todos os filtros
  • Redimensionamento da janela → gráficos atualizam automaticamente

🛠️ Requisitos

  • Apache ECharts v5+
  • JSON de dados com o formato adequado
  • HTML com os IDs definidos em dashboardConfig

💡 Dicas

  • Personalize com labelFormat, tooltipFormatter, colorScale, etc.
  • Quer usar como módulo NPM ou UMD? Modularizamos para você facilmente.
  • A biblioteca foi criada para ser leve, extensível e fácil de integrar.

🤝 Contribuições

Contribuições são bem-vindas!
Para reportar bugs, sugerir melhorias ou colaborar, entre em contato com o autor ou abra uma issue.