Org chart with images

716 views
Skip to first unread message

jagadeesh g

unread,
Nov 14, 2013, 12:22:35 PM11/14/13
to google-visua...@googlegroups.com
Hi,

I am new to Google Visualization api. I need to create org charts with photo of the user. Kindly let me know if there is any issue with my code.
When i add the below image tag the chart is not displaying. and the div tag is empty. 

function drawChart() {
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Name');
        data.addColumn('string', 'Manager');
        data.addColumn('string', 'ToolTip');
        data.addRows([
          [{v:'1', f:'<div style="width:400px;height:100px;"><span style="padding-left:15px; padding-right:15px;"><img src='user.png' />Rita Vanhauwenhuyse</span></div><div style="color:white;">VP Talent & Learning</div>'}, '', 'VP Talent & Learning'],
          [{v:'Jim', f:'Jim<div style="color:red; font-style:italic">Vice President</div>'}, '1', 'VP'],
          ['Alice', '1', ''],
          ['Bob', 'Jim', 'Bob Sponge'],
          ['Carol', 'Bob', '']
        ]);

jagadeesh g

unread,
Nov 14, 2013, 12:25:49 PM11/14/13
to google-visua...@googlegroups.com
Hi,

Sorry, I fixed the issue 

TheInnovator

unread,
Nov 15, 2013, 2:41:58 PM11/15/13
to google-visua...@googlegroups.com
How did you fix it?

jagadeesh g

unread,
Nov 19, 2013, 11:23:51 AM11/19/13
to google-visua...@googlegroups.com
Hi 

Image rendering will not work inside span tag 

Isaac Sogunro

unread,
Nov 22, 2013, 1:03:52 PM11/22/13
to google-visua...@googlegroups.com
Does any body know why these 2 statements found on the Goolge charts site seem contradicting?
 
Data Policy
All code and data are processed and rendered in the browser. No data is sent to any server.

I also found the below question and answer on their FAQ page which seems to contradict the above:

Is Google logging all my chart data?
The chart data included in the HTTP request is saved in temporary logs for no longer than two weeks for internal testing and debugging purposes. Of course you should understand that if your chart appears in an image tag on a public webpage, it could be crawled.

Thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/LrWf3E3K8ig/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.



--
-Isaac-

http://twitter.com/#!/feedy0urmind
You are today where your thoughts have brought you; you will be tomorrow where your thoughts take you.
- James Allen

asgallant

unread,
Nov 22, 2013, 1:47:27 PM11/22/13
to google-visua...@googlegroups.com
The second line applies to the Image Chart API, which requires sending data to Google's servers (the URL for the image contains the data).  The first statement applies to most of the Interactive Charts, which do not send any data at all to Google's servers (there are a few exceptions which use Google's geocoding service).  Whatever the data policy is for a given chart supercedes the data policy you see anywhere else, so if you have concerns, always reference the chart's individual policy.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages