0

別のページに KPI テーブルを埋め込もうとしています。こちらの手順 (ページ X) で提供されているサンプルを変更したところ、次のようになりました。

<html>
<head>
<title>Dashbuilder Javascript API</title>
<script src="http://localhost:8080/dashbuilder/js-api/dashbuilder-1.0.0.js"></script>
<style>
.code {
padding:10px;
background-color: rgb(248, 248, 248);
border-color: rgb(221, 221, 221);
border-radius: 3px;
border-style: solid;
box-sizing: border-box;
color: rgb(51, 51, 51);
font-weight: normal;
}
</style>
</head>
<body onload="embedCharts();">
<span class="code">dashbuilder_embed_chart('Hawkwood At-Risk', 'http://localhost:8080/dashbuilder', 'kpi_18141464209498716', 600, 350);</span>
<br/>
<!-- Very simple layout with charts -->
<table border="0" cellpadding="5" >
<tr>
<td id="chart1"></td>
</tr>
</table>
<!-- End of charts -->
<script type="text/javascript">
function embedCharts() {
var dashbuilderUrl = 'http://localhost:8080/dashbuilder';
dashbuilder_embed_chart('Hawkwood At-Risk', dashbuilderUrl, 'kpi_18141464209498716', 600, 350);
}
</script>
</body>
</html>

しかし、結果のページで思いついたのは、" dashbuilder_embed_chart('Hawkwood At-Risk', ' http://localhost:8080/dashbuilder ', 'kpi_18141464209498716', 600, 350);"というテキストを含むボックスだけです。中身。

ファイルhttp://localhost:8080/dashbuilder/js-api/dashbuilder-1.0.0.jsの存在を確認できました。

私が間違ったことをしたことがわかりますか?

4

1 に答える 1

0

理解した!適切な埋め込みコードは次のとおりです。

<html>
<head>
<title>Dashbuilder Javascript API</title>
<script src="http://localhost:8080/dashbuilder/js-api/dashbuilder-1.0.0.js"></script>
<style>
.code {
padding:10px;
background-color: rgb(248, 248, 248);
border-color: rgb(221, 221, 221);
border-radius: 3px;
border-style: solid;
box-sizing: border-box;
color: rgb(51, 51, 51);
font-weight: normal;
}
</style>
</head>
<body onload="embedCharts();">
<!-- Very simple layout with charts -->
<table border="0" cellpadding="5" >
<tr>
<td id="chart1"></td>
</tr>
</table>
<!-- End of charts -->
<script type="text/javascript">
function embedCharts() {
var dashbuilderUrl = 'http://localhost:8080/dashbuilder';
dashbuilder_embed_chart('chart1', dashbuilderUrl, 'kpi_18141464209498716', 600, 350);
}
</script>
</body>
</html>
于 2016-05-26T13:14:38.990 に答える