React component to embed visualizations from Oracle Analytics Cloud into your React application.
npm install react-dvnpm install --save react-dv
First import this component where you want to use it
import { DataVisualization } from "react-dv"
Next add embedding script to index.html of project
```
src="
type="application/javascript">
Then just render it. This component requires Single Sign On to be enable between the Oracle Analytics Cloud and your application. For testing, you can run the application in the same browser where you are signed into Oracle Analytics Cloud to get around the Single Sign On requirement.
| _Prop_ | _Description_ | _Value_ |
| ------------------- | :--------------------------------------------------------: | ------------- |
| path | Set path to Oracle Cloud Analytics project | String |
| activeTab | Select active canvas to display | String |
| showFilter | Determines if filtering is enabled for visualization | Boolean |
| disableMobileLayout | Disables or enables mobile layout | Boolean |
`
import React, { Component } from "react";
import DataVisualization from "react-dv";
class App extends Component {
render() {
return (
);
}
}
export default App;
`
First import this component where you want to use it
import { Dashboard } from "react-dv"
Then just render it. This component requires Single Sign On to be enable between the Oracle Analytics Cloud and your application. For testing, you can run the application in the same browser where you are signed into Oracle Analytics Cloud to get around the Single Sign On requirement.
| _Prop_ | _Description_ | _Value_ |
| ------------------- | :--------------------------------------------------------: | ------------- |
| link | Prompted URL for Business Intelligence Dashboard | String |
`
import React, { Component } from "react";
import { Dashboard } from "react-dv";
class App extends Component {
render() {
return (
);
}
}
export default App;
``