Aws Quicksight 简明教程
AWS Quicksight - AWS SDKs
您可以使用 AWS Quicksight SDK 来管理以下内容−
You can use AWS Quicksight SDK’s to manage the following −
-
User and group management
-
Embedding dashboards
以下是用于显示嵌入式仪表板的示例 HTML 代码−
Following shows a sample HTML code to be used to display an embedded dashboard −
<!DOCTYPE html>
<html>
<head>
<title>Sample Embed</title>
<script type="text/javascript" src="https://unpkg.com/amazon-quicksight-embedding-sdk@1.0.1/dist/quicksight-embedding-js-sdk.min.js"></script>
<script type="text/javascript">
function embedDashboard() {
var containerDiv = document.getElementById("dashboardContainer");
var params = {
url: "https://us-east-1.quicksight.aws.amazon.com/sn/dashboards/xxx-x-x-xx-x-x-x-x-x-x-x-xx-xx-x-xx",
container: containerDiv,
parameters: {
country: 'United States'
},
height: "600px",
width: "800px"
};
var dashboard = QuickSightEmbedding.embedDashboard(params);
dashboard.on('error', function() {});
dashboard.on('load', function() {});
dashboard.setParameters({country: 'Canada'});
}
</script>
</head>
<html>
要使用 AWS SDK,您应该熟悉以下内容−
To use AWS SDK’s, you should be familiar with the following −
-
JSON
-
Web services
-
HTTP requests
-
One or more programming languages, such as JavaScript, Java, Python, or C#.