1.0.4 • Published 5 years ago

keen-react-dashboards v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Keen dashboard builder react component

Install with NPM

npm install keen-react-dashboards --save

Usage

Use this component to use dashboard builder on Your website. All the configuration properties could be passed in props.

Example

import React from 'react';
import ReactDOM from 'react-dom';
import Dashboards from 'keen-react-dashboards';

const App = () => {
  return (
    <Dashboards
      container="#app" //required
      keenAnalysis={{
        config: {
          projectId: 'YOUR_PROJECT_ID',
          masterKey: 'YOUR_MASTER_KEY',
          protocol: 'https',
          host: 'api.keen.io'
        }
      }}
    />
  );
};

ReactDOM.render(<App />, document.getElementById('app'));