Socket
Book a DemoInstallSign in
Socket

clay-charts-react

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-charts-react

Implementation of clay-charts in React.js

latest
npmnpm
Version
2.4.1
Version published
Maintainers
6
Created
Source

clay-charts-react

React.js implementation of Clay built on react-billboardjs

Setup

  • Install NodeJS >= v0.12.0 and NPM >= v3.0.0, if you don't have it yet. You can find it here.

  • Install local dependencies:

npm install
  • Build the code:
npm run compile

Running Demos

  • Install local dependencies:
npm install
  • Start development server
npm run start
  • Navigate to localhost:8080

Basic Usage

See billboard.js and react-billboardjs for a more in depth API

import ClayCharts from 'clay-charts-react';

<ClayCharts
	data={{
		columns: [['data1', 100, 20, 30], ['data2', 20, 70, 100]],
		type: 'bar',
	}}
/>;

// or

import { BarChart } from 'clay-charts-react';

<BarChart
	data={{
		columns: [['data1', 100, 20, 30], ['data2', 20, 70, 100]],
	}}
/>;

FAQs

Package last updated on 07 Dec 2018

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