A react component to embed Tableau reports into a web application.
npm install react-tableau-report```
npm install react-tableau-report --save
js
import TableauReport from 'tableau-react';...
render() {
return {
}
}
`Advanced Usage
You can add a token, options, filters, and parameters to your TableauReport components to utilizate the features available in the Tablea Api.Click Here to view the full list of options that can be passed to the report.
Example:
`js
const token = "";const options = {
height: 100,
width: 100,
hideTabs: false,
hideToolbar: true
};
const filters = {
Colors: ['Blue', 'Red'],
Sizes: ['Small', 'Medium']
};
const parameters = {
Param1: 'Value',
Param2: 'Other Value'
};
const MyReport = props => (
url="http://public.tableau.com/views/RegionalSampleWorkbook/Storms"
token={token}
filters={filters}
parameters={parameters}
options={options}
/>
)
``- react
- react-dom
- tableau-api
- url