keen-react-dashboards
v1.0.4
Published
React component of Keen dashboard builder
Downloads
13
Maintainers
Readme
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'));