New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-keen

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-keen

React Component for Keen.io Charts

latest
npmnpm
Version
0.9.7
Version published
Weekly downloads
14
600%
Maintainers
1
Weekly downloads
 
Created
Source
Keen Logo React Logo

React Keen

React components for Keen IO

Installation

npm install react-keen
# or
yarn add react-keen

Usage

Use Query and Chart components to create a chart of data from Keen. Query expects a client prop and parameters used by the Keen.Query of keen-analysis.js and Chart expects a data prop of the response from the query (a Keen.Dataset object) or a raw object and values passed to Keen.Dataviz methods. Check the examples/ directory for some examples

import Keen from 'keen-analysis'
import { Query, Chart } from 'react-keen'
import 'keen-dataviz/dist/keen-dataviz.css'

const client = new Keen({
    readKey: KEEN_READ_KEY
})

<Query
    client={client}
    event_collection='pageviews'
    timeframe='this_14_days'
>{data => (
    <Chart type="area" data={data} />
)}</Query>

Development

  • Clone the repo git clone git@github.com:iddan/react-keen.git
  • Install dependencies yarn install
  • Go to the examples directories cd examples/
  • Install examples dependencies yarn install
  • Run examples development server yarn start

Prior Art

License

MIT License

Keywords

keen

FAQs

Package last updated on 21 Nov 2017

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