I have a report, in whichs .view file I create a ColumnChart and a Google Table. If I print it on a Site with two other reports it will work fine and look good. But if I render the Report alone ( so both mentioned - Table and Chart) it will throw an Error:
TypeError: google.visualization[this.chartType] is not a constructor googlechart.js:30:22
TypeError: this.chart is null googlechart.js:127:13
Then only the table does not display. The first Report i need to display before creates a combo Chart and in the second one I create my own map visualization. Those two function well alone. Every report is created correctly regarding enveloping with div´s etc.
The Table is created as this:
/* Select the right indices to include to Table*/
$columns = array("c0" => array("label" => "Parameter"));
foreach ($selected as $index => $select) {
$columns[("c" . ($index + 1))] = array("label" => $names[$select]);
}
/*Surround Table with Dropdown Box*/
echo('<details style="width:98%; padding-left:2%; padding-top:10px; padding-bottom:10px; font-size: 20px; border: 1px solid #ddd;">
<summary>Alle Daten</summary>');
/*Create Table*/
Table::create(array(
"title" => "Zeitvergleich der beiden Lösungen",
"dataSource" => $this->dataStore("comp_time"),
"columns" => $columns
,
"options" => array(
"width" => "100%",
)
));
}
echo"</details>";
This anyhow seems weird to me as no other combination of displaying the report will result in the table showing. It must be ComboChart -> Map -> Column+Table Any other order doesnt work as well. Is this Problem known ? Thank you for your Support!