After update doesnt show google chart
Hello, please today i made update of Page Builder and the problem is – I visualize google chart (insert code in text widget) – but now when I make some upadate of my chart (just numbers in chart not code) – than this chart Will disappear. Chart without upadetes i can still see. Please can you help me?
Thank you
Example of code
google.load(‘visualization’, ‘1.0’, {‘packages’:[‘corechart’]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var wrapper = new google.visualization.ChartWrapper(
{“containerId”:”visualization3966B”,”dataTable”:{“cols”:[{“id”:””,”label”:”LOREM”,”pattern”:””,”type”:”string”,”p”:{}},{“id”:””,”label”:”počet spisů”,”pattern”:””,”type”:”number”}],”rows”:[{“c”:[{“v”:”A”,”f”:null},{“v”:0,”f”:null}]},{“c”:[{“v”:”B”,”f”:null},{“v”:0,”f”:null}]},{“c”:[{“v”:”C”,”f”:null},{“v”:3,”f”:null}]},{“c”:[{“v”:”D”,”f”:null},{“v”:3,”f”:null}]},{“c”:[{“v”:”E”,”f”:null},{“v”:0,”f”:null}]},{“c”:[{“v”:”F”,”f”:null},{“v”:0,”f”:null}]},{“c”:[{“v”:”G”,”f”:null},{“v”:0,”f”:null}]},],”p”:null},”options”:{“hAxis”:{“useFormatFromData”:true,”viewWindow”:{“max”:null,”min”:null},”minValue”:null,”maxValue”:null},”vAxes”:[{“title”:null,”minValue”:null,”maxValue”:null,”viewWindow”:{“max”:null,”min”:null},”useFormatFromData”:true},{“viewWindow”:{“max”:null,”min”:null},”minValue”:null,”maxValue”:null,”useFormatFromData”:true}],”is3D”:false,”pieHole”:”0.9″,”booleanRole”:”certainty”,”colors”:[“#666666″,”#b7b7b7″,”#0099C6″,”#902704″,”#999999″,”#0099C6″,”#DD4477″,”#3a0091″,”#B82E2E”,”#316395″,”#994499″,”#22AA99″,”#AAAA11″,”#6633CC”,”#E67300″,”#8B0707″,”#651067″,”#329262″,”#5574A6″,”#3B3EAC”,”#B77322″,”#16D620″,”#B91383″,”#F4359E”,”#9C5935″,”#A9C413″,”#2A778D”,”#668D1C”,”#BEA413″,”#0C5922″,”#743411″],”pieSliceTextStyle”:{“color”:”#434343″,”fontSize”:”11″},”legend”:”right”,”fontName”:”Georgia”,”legendTextStyle”:{“color”:”#222″,”fontSize”:”10″},”title”:”LOREM”},”state”:{},”view”:{},”isDefaultVisualization”:true,”chartType”:”PieChart”}
);
wrapper.draw();
};
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi Tomáš,
This sounds like an issue associated with the WordPress 4.8 text widget update. I would recommend moving the above-mentioned code to a SitOrigin Editor widget (with Automatically add Paragraphs disabled) to see if that works.
If it doesn’t, do you have a public URL where we can take a look at what’s going on?
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.