@antv/smart-board
TypeScript icon, indicating that this package has built-in type declarations

2.0.5-alpha.0 • Public • Published

English | 简体中文

@antv/smart-board

A js/ts library that solves dashboarding calculation and drawing problems for charts.

Version NPM downloads

Features

  • Auto-Dashboarding: Automatically compute dashboarding configurations based on input chart schemas.
  • Dashboard Drawing: Provides a React component SmartBoardDashboard for Dashboard drawing based on the above configurations.
  • Combine with Insight: Easily combined with LiteInsight for better visualize insights behind data.

The pipeline of SmartBoard:

SmartBoard pipeline

📦 Installation

$ npm install @antv/smart-board

🔨 Getting Started

import { SmartBoard, SmartBoardDashboard } from '@antv/smart-board';

const cars = 'https://cdn.jsdelivr.net/npm/vega-datasets@2/data/cars.json';

const InputChart = [
  {
    dataUrl: cars,
    subspace: [],
    dimensions: ['Origin'],
    measures: ['Horsepower'],
    fieldInfo: {
      Origin: {
        dataType: 'string',
      },
      Horsepower: {
        dataType: 'number',
      },
    },
    insightType: 'outlier',
    score: 0.5,
    chartType: 'column_chart',
  },
  {
    dataUrl: cars,
    subspace: [],
    dimensions: ['Year'],
    measures: ['Acceleration'],
    insightType: 'trend',
    score: 0.8,
    chartType: 'line_chart',
  },
];

const smartBoard = new SmartBoard(InputChart);

const dashboardContent = 
  (<SmartBoardDashboard
    chartList={InputChart}
    interactionMode={'defaultMode'}
    chartGraph={smartBoard?.chartGraph}
    chartOrder={smartBoard?.chartOrder('byCluster')}
    chartCluster={smartBoard?.chartCluster()}
  />);

📖 Documentation

For more usages, please check the API Reference

📄 License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @antv/smart-board

Weekly Downloads

94

Version

2.0.5-alpha.0

License

MIT

Unpacked Size

3.79 MB

Total Files

64

Last publish

Collaborators

  • lvisei
  • yisi.wang
  • basketduck
  • biupiubiupiu
  • flash1
  • dreammy23
  • laixingui.lxg
  • zhangjunjie-loki
  • rainy25ghz
  • zeyuwang
  • yanxiong
  • susiwen8
  • freestyle21
  • soundquiet
  • elaine.q.10
  • sturuby
  • sakuya223
  • serializedowen
  • xdzhao
  • yangzhanmei
  • wjgogogo
  • leungwensen
  • dori
  • iaaron
  • yard
  • simaq
  • dxq613
  • intchous
  • susan_ann
  • jinke.li
  • lzxue
  • army8735
  • atool
  • baizn
  • dengfuping
  • neoddish
  • jeffy2012
  • zqlu
  • afc163
  • pomelo-nwu
  • kopiluwaky
  • ccnuzindex
  • panyuqi
  • bubkoo
  • zengyue
  • kasmine
  • boyu.zlj
  • l1ud0ngq1
  • newbyvector
  • winniexing
  • chenluli
  • kn9117
  • xdddst
  • semious2020
  • esora
  • nadia_liu
  • bbsqq
  • mxz96102
  • openwayne
  • pearmini
  • pddpd
  • yiqianyao
  • zhanba
  • cxxxxxn