Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function App() {
>
<h1>The Tableau Embedded API v3</h1>
<h3>Now more lightweight, and backwards compatible!</h3>
<TableauEmbed sourceUrl="https://public.tableau.com/views/WorldIndicators/GDPpercapita" />
<TableauEmbed sourceUrl="https://public.tableau.com/views/US_WorldIndicators_10_0/Population" />
</div>
);
}
Expand Down Expand Up @@ -103,7 +103,7 @@ Note: some props in require odd syntax to pass due to how tableau has hyphenated

```js
<TableauEmbed
sourceUrl="https://public.tableau.com/views/WorldIndicators/GDPpercapita"
sourceUrl="https://public.tableau.com/views/US_WorldIndicators_10_0/Population"
{...{ "hide-tabs": showTab ? undefined : true }}
/>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function AddRemoveFilters() {
<div className="tableau-wrapper">
<TableauEmbed
ref={vizRef}
sourceUrl="https://public.tableau.com/views/WorldIndicators/GDPpercapita"
sourceUrl="https://public.tableau.com/views/US_WorldIndicators_10_0/Population"
{...{ "hide-tabs": true }}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
function AddRemoveFilters() {
return (
<div className="App">
<TableauEmbed sourceUrl="https://public.tableau.com/views/WorldIndicators/GDPpercapita" />
<TableauEmbed sourceUrl="https://public.tableau.com/views/US_WorldIndicators_10_0/Population" />
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ function AddRemoveFilters() {
<div className="App">
<div>
<p>
This example shows event listeners. Two types are exposed as props:
callbacks which have the names defined in the Tableau documentation
are passed as props to <span>{"<tableau-viz>"}</span>
{
"This example shows event listeners which will trigger console logs (inspect page -> console to view)."
}
<br />
Two types are exposed as props: callbacks which have the names defined
in the Tableau documentation are passed as props to{" "}
<span>{"<tableau-viz>"}</span>
(e.g., "onMarkSelectionChanged"), and those which are added via an
event listener which have a prefix (e.g.,
"onEventListenerMarkSelectionChanged").
Expand All @@ -29,7 +33,7 @@ function AddRemoveFilters() {
</div>
<div className="tableau-wrapper-min">
<TableauEmbed
sourceUrl="https://public.tableau.com/views/WorldIndicators/GDPpercapita"
sourceUrl="https://public.tableau.com/views/US_WorldIndicators_10_0/Population"
onMarkSelectionChanged={(e: any) =>
console.log("callback example: onMarkSelectionChanged:", { e })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const defaultProps = {
height: 500,
width: 500,
// "hide-tabs": false,
sourceUrl: "https://public.tableau.com/views/WorldIndicators/GDPpercapita",
sourceUrl:
"https://public.tableau.com/views/US_WorldIndicators_10_0/Population",
};

function InteractiveProps() {
Expand Down