New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@keen.io/charts

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keen.io/charts

Keen charts


Version published
Maintainers
2
Created

@keen.io/charts

Known Vulnerabilities

The @keen.io/charts is set of reusable plots components built with React and D3. Charts are part of a @keen.io/widgets and @keen.io/dataviz packages that could be used to seamlessly embed and deliver metrics within your user interface.

Charts plots theme could be fully customized by providing theme object. Each of chart plot supports a lot of configuration options to adjust it to Your own needs.

Installing

For Front-End applications use standard npm or yarn package manager.

yarn install @keen.io/charts

Examples

import { BarChart } from '@keen.io/charts';

const chartData = [
  { name: 'Windows', users: 3, licenses: 52, shops: 12 },
  { name: 'MacOS', users: 19, licenses: 82, shops: 15 },
  { name: 'Linux', users: 20, licenses: 15, shops: 23 },
  { name: 'Android', users: 3, licenses: 15, shops: 30 },
];

<BarChart data={chartData} labelSelector="name" keys={['users', 'licenses', 'shops']} />

For more examples check the Keen Storybook.

FAQs

Package last updated on 07 May 2020

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