I was trying to view Quicksight dashboard as embedded url from our domain which was whitelisted in AWS Quicksight account. Our website is hosted on S3 bucket as a static website. Below sample, a javascript function is given on an AWS Blog.
Below is the sample javascript function.
function embedDashboard() {
var containerDiv = document.getElementById("dashboardContainer");
var options = {
url: "<signed URL from Step 3>",
container: containerDiv,
parameters: {
country: 'United States'
},
scrolling: "no",
height: "700px",
width: "1000px"
};
dashboard = QuickSightEmbedding.embedDashboard(options);
dashboard.on('error', onError);
dashboard.on('load', onDashboardLoad);
}
Full example is given on another link of the same blog Amazon QuickSight JavaScript SDK
Unfortunately, the sample is not working.