NTFS Path Mockery

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

    2.0.4-beta.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

    Keywords

    none

    Install

    npm i @antv/smart-board

    DownloadsWeekly Downloads

    330

    Version

    2.0.4-beta.0

    License

    MIT

    Unpacked Size

    3.95 MB

    Total Files

    49

    Last publish

    Collaborators

    • basketduck
    • biupiubiupiu
    • flash1
    • dreammy23
    • laixingui.lxg
    • zhangjunjie-loki
    • rainy25ghz
    • zeyuwang
    • yanxiong
    • susiwen8
    • freestyle21
    • soundquiet
    • elaine.q.10
    • sturuby
    • lviser
    • 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