Skip to content

keen/react-dashboards

Repository files navigation

Keen dashboard builder react component

Slack

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'));