1.1.0 • Published 5 years ago

react-dv v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

React Data Visualization

Installation

npm install --save react-dv

How To Use Data Visualization Component

First import this component where you want to use it

import { DataVisualization } from "react-dv"

Next add embedding script to index.html of project

<script
    src="<oac instance url>/dv/ui/api/v1/plugins/embedding/standalone/embedding.js"
    type="application/javascript">
</script>

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.

<DataVisualization path="oac/project/path" activeTab="1" showFilter={false} disableMobileLayout={false} />

Props

PropDescriptionValue
pathSet path to Oracle Cloud Analytics projectString
activeTabSelect active canvas to displayString
showFilterDetermines if filtering is enabled for visualizationBoolean
disableMobileLayoutDisables or enables mobile layoutBoolean

Example

import React, { Component } from "react";
import DataVisualization from "react-dv";


class App extends Component {

  render() {
    return (
        <DataVisualization path="oac/project/path" activeTab="1" showFilter={false} disableMobileLayout={false} />
    );
  }
}

export default App;

How To Use Dashoboard Component

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.

<Dashboard link="oac.com/prompted-url-link" />

Props

PropDescriptionValue
linkPrompted URL for Business Intelligence DashboardString

Example

import React, { Component } from "react";
import { Dashboard } from "react-dv";


class App extends Component {

  render() {
    return (
        <Dashboard link="oac.com/prompted-url-link" />
    );
  }
}

export default App;