AWS Quicksight – AWS 开发工具包
AWS Quicksight – AWS 开发工具包
您可以使用 AWS Quicksight SDK 来管理以下内容 –
- 用户和组管理
- 嵌入仪表板
以下显示了用于显示嵌入式仪表板的示例 HTML 代码 –
<!DOCTYPE html> <html> <head> <title>Sample Embed</title> <script type="text/javascript" src="https://unpkg.com/[email protected]/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 开发工具包,您应该熟悉以下内容 –
-
JSON
-
网页服务
-
HTTP 请求
-
一种或多种编程语言,例如 JavaScript、Java、Python 或 C#。