做webdatarocks支持多轴报告和图表在仪表板上。我需要加载一个报表列表,在第一行-报告1与枢轴表和图表和第二行-报告2与不同的数据作为其图表值,等等。是否有可能做到这一点。
我正在尝试这个,因为它加载了第一个图表值或最后一个图表值。在循环中,每个id都将图表容器作为id。
Id=“googlechart-容器”
或者使用,
@ViewChild(“#somehtmlref”)子: WebDataRocksPivot;on TS
WebDataRocks将出现在这里。
是那些引起问题的人。
发布于 2022-07-25 13:02:38
要在页面上创建多个枢轴,您应该添加多个WebDataRocks实例和多个图表容器,例如:
<app-wbr-pivot
#pivot1
[toolbar]="true"
[width]="'100%'"
[height]="500"
[report]="'https://cdn.webdatarocks.com/reports/report.json'"
(reportcomplete)="onReportComplete()">
WebDataRocks will appear here
</app-wbr-pivot>
<div id="googlechart-container1"></div>
<app-wbr-pivot
#pivot2
[toolbar]="true"
[width]="'100%'"
[height]="500"
[report]="'https://cdn.webdatarocks.com/reports/report2.json'"
(reportcomplete)="onReportComplete2()">
WebDataRocks will appear here
</app-wbr-pivot>
<div id="googlechart-container2"></div>https://stackoverflow.com/questions/73083451
复制相似问题