Socket
Socket
Sign inDemoInstall

@stamen/discretebarchart

Package Overview
Dependencies
21
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stamen/discretebarchart


Version published
Weekly downloads
2
Maintainers
3
Install size
3.99 MB
Created
Weekly downloads
 

Readme

Source

DiscreteBarChart

A simple vertical bar chart.

Part of the @stamen/panorama toolkit.

Usage
import React from 'react';
import ReactDOM from 'react-dom';
import { DiscreteBarChart } from '@panorama/toolkit';

let discreteBarChartConfig = {
  data: [
    { key: 'red', value: 20 },
    { key: 'blue', value: 40 },
    { key: 'green', value: 10 }
  ],
  width: 400,
  height: 400

  // Optionally specify custom margins
  margin: { top: 10, right: 10, bottom: 10, left: 10 },

  // Optionally specify accessors to match your data format
  xAccessor: d => d.key,
  yAccessor: d => d.value
};

ReactDOM.render(<DiscreteBarChart {...discreteBarChartConfig}/>, document.body);

FAQs

Last updated on 12 Apr 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc