Hi,
thx i took a deeper look to the head area and was able to find the line.
$document->_script = preg_replace('window\.addEvent\(\'domready\',\s*function\(\)\s*{\s*\$\$\(\'.hasTip\'\).each\(function\(el\)\s*{\s*var\s*title\s*=\s*el.get\(\'title\'\);\s*if\s*\(title\)\s*{\s*var\s*parts\s*=\s*title.split\(\'::\',\s*2\);\s*el.store\(\'tip:title\',\s*parts\[0\]\);\s*el.store\(\'tip:text\',\s*parts\[1\]\);\s*}\s*}\);\s*var\s*JTooltips\s*=\s*new\s*Tips\(\$\$\(\'.hasTip\'\),\s*{\s*maxTitleChars:\s*50,\s*fixed:\s*false}\);\s*}\);', '', $document->_script);
I used this line to remove a part of code which ends in a console error cause of mootools, sadly this line also removed the Google Charts code.
Maybe someone can help me to modify the code to keep the following lines:
<s-cript type="text/j-avascript">
if(typeof google !== "undefined") google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart180);
function drawChart180() {
var data = google.visualization.arrayToDataTable([["Task", "Value"],["Bolivia", 5],[" Ecuador", 5],[" Madagascar", 8],[" Guinea", 12],["Rwanda", 16],["Average", 21]]);
var options = {width: 400,height: 500,pieSliceText:"label",tooltip: {text: "percentage", isHtml: "1"},titleTextStyle: {color: "#ff9900", fontSize: "16"},title: "test",legend: {position: "right"},backgroundColor: {fill: "transparent",stroke: "#666"},fontSize: "12",fontName: "Arial"};
var chart = new google.visualization.PieChart(document.getElementById("hex_chart_div_180"));
chart.draw(data, options);
}
</script>