function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AffinaquestAffinaquest 

Org Chart Google Visualization

I'm having trouble getting an org chart google visualization working.  I don't have any problem getting the sample code working for orgcharts from http://code.google.com/apis/visualization/documentation/gallery/orgchart.html.

 

I'm also able to get the datachart working as per the example from http://wiki.developerforce.com/index.php/Google_Visualizations.

 

Then I created my own page with a datachart using a json dataset with the appropriate columns to support an org chart.  I displayed this json data on my visual force page with this code:

 

<c:DataTable jsondata="{!RelationTable}"/>

 

The chart displayed perfectly and the data appeared to be in exactly the format required for an orgchart.

 

Then I added this statement to display the data in orgchart format:

 <c:orgchart jsondata="{!RelationTable}"/>

However, this statement gives me the following error when I try to save the visual force page:

"Component c:orgchart does not exist"

 

Does anyone have any idea of why the orgchart is not considered a valid component?  Is there some other visual force code or script that can be used to display the orgchart?  I tried modifying the code from the documentation gallery example to use json data, but I was unable to get that to work.

 

Thanks for reading this and any help you might be able to offer.

AffinaquestAffinaquest

OK, I've figured out the basic problem here.  There is no component for orgchart in the codeshare projectwhich Salesforce has put together for visualizations. 

 

Anybody care to help write one?

 

jlojlo

Affinaquest wrote:

OK, I've figured out the basic problem here.  There is no component for orgchart in the codeshare projectwhich Salesforce has put together for visualizations. 

 

Anybody care to help write one?

 


Affinaquest - there is an "org chart" component, but it's named "HierarchicalChart". 

The component can be found here: http://code.google.com/p/apex-google-visualization/source/browse/trunk/GoogleVisualizations/src/components/HierarchicalChart.component

 

There are two examples of this component in use:

http://code.google.com/p/apex-google-visualization/source/browse/trunk/GoogleVisualizations/src/pages/AccountHierarchy.page

http://code.google.com/p/apex-google-visualization/source/browse/trunk/GoogleVisualizations/src/pages/ContactHierarchy.page

 

If these files aren't already present in your Force.com IDE project, follow these instructions to get the latest code: http://wiki.developerforce.com/index.php/Google_Visualizations_Project_Update_Instructions

 

 

 

hijir Saharhijir Sahar
alterativepharma (https://www.google.com/url?sa=t&url=https%3A%2F%2Falterativepharma.com.br) alterativepharma (http://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&tid=9BB77FDA801248A5AD23FDBDD5922800&url=https%3A%2F%2Falterativepharma.com.br) alterativepharma (https://www.google.com/url?sa=t&url=https%3A%2F%2Falterativepharma.com.br) alterativepharma (https://www.google.com/url?sa=t&url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://www.google.com/url?sa=t&url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://www.youtube.com/redirect?event=channel_description&q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://www.youtube.com/redirect?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://t.me/iv?url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://www.t.me/iv?url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://new.creativecommons.org/choose/results-one?q_1=2&q_1=1&field_commercial=n&field_derivatives=sa&field_jurisdiction=&field_format=Text&field_worktitle=Blog&field_attribute_to_name=Lam%20HUA&field_attribute_to_url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://creativecommons.org/choose/results-one?q_1=2&q_1=1&field_commercial=n&field_derivatives=sa&field_jurisdiction=&field_format=Text&field_worktitle=Blog&field_attribute_to_name=Lam%20HUA&field_attribute_to_url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://legal.un.org/docs/doc_top.asp?path=../ilc/documentation/english/a_cn4_13.pd⟪=Ef&referer=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://m.ok.ru/dk?st.cmd=outLinkWarning&st.rfn=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://www.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (http://www.bing.com/news/apiclick.aspx?ref=FexRss&aid=&tid=9BB77FDA801248A5AD23FDBDD5922800&url=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://www.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F) alterativepharma (https://plus.google.com/url?q=https%3A%2F%2Falterativepharma.com.br%2F)