Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3-state-visualizer

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-state-visualizer

Visualize your app state with a range of reusable charts

  • 0.3.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.5K
decreased by-4.89%
Maintainers
1
Weekly downloads
 
Created
Source

d3-state-visualizer

Enables real-time visualization of your application state. Demo

Installation

npm install d3-state-visualizer

Usage

import { tree } from 'd3-state-visualizer';
import d3 from 'd3';

const appState = {
  todoStore: {
    todos: [
      { title: 'd3'},
      { title: 'state' },
      { title: 'visualizer' },
      { title: 'tree' }
    ],
    completedCount: 1
  }
};

// only 2 function calls and you're done!
const initialize = tree();

const render = initialize(d3, document.getElementById('root'), {
  state: appState,
  id: 'treeExample',
  size: 1000,
  aspectRatio: 0.5,
  isSorted: false,
  widthBetweenBranchCoeff: 2,
  heightBetweenNodesCoeff: 1.5,
  style: 'border: 1px solid black'
});

render();

## Bindings

Plain React

example implementation.

Roadmap

  • Visualize React component hierarchy.
  • Connect visualizations of the state with the component hierarchy of your application. This would allow to get a bird's eye view of your components' data dependencies.
  • Provide example integrations with Redux and Mobservable.

Keywords

FAQs

Package last updated on 27 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc