So, moving on from Google Charts Image Chart Map Charts, today, letโs turn our attention to Google Charts Image Chart Venn Charts which we were dead set curious about given work weโd done in the past regarding Venn Diagrams, which we referenced when we presented Flowchart and Venn Diagram and Mind Map Token Subject Emoji Tutorial some time back. Gobsmackingly good is the Google approach, again, as youโd expect, but the approach covers different ground, so one feels one should go back to Primary School! You thought we were going to give away the answer to one of those security questions, didnโt you?! Didnโt you!?! Well, the answer is โGryffindor Slytherin Ravenclaw Hufflepuff Junior Business Collegeโ โฆ if you must know.
The sharing capabilities are good with the Google Charts approach too, given we are creating an HTML image, as our WordPress blog good olโ 404.php has been woken up to address via โฆ
<?php
if (strpos(('?' . $_SERVER['QUERY_STRING']), '?cht=') !== false || strpos(('?' . $_SERVER['QUERY_STRING']), '&cht=') !== false) {
$theqs=str_replace('??','?',('?' . $_SERVER['QUERY_STRING']));
if (strpos($theqs, '?chs=') === false && strpos($theqs, '&chs=') === false) {
$theqs='?chs=' . $newWidth . 'x' . $newHeight . '&' . explode('?', $theqs)[1];
}
header('Content-Type: image/png');
echo file_get_contents('http://chart.googleapis.com/chart' . $theqs);
exit;
}
?>
Yes, all these Image Chart smarts come, essentially, from a โone lineโ calling URL! Whoโd have believed it! Shiver me timbers!
Well, itโs early days with this Venn Chart interfacing where we allow for โฆ
- circle (think up to three) definition โฆ and the rest, in this first draft (hoping youโve done some reading) โฆ
- legend and title and colour selection user definitions dumped into a fairly unfriendly โthe restโ Javascript prompt entry we ask of the user should they go ahead with the previous definition โฆ and โฆ
- sharing and collaboration email and SMS functionality
โฆ we hope you try via our โproof of conceptโ first draft image_vennhtml Google Chart Image Chart Venn Chart interfacing web application you can also try below โฆ
If this was interesting you may be interested in this too.