Project:Google Chart Tools
Version:7.x-1.0
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I am trying to produce an OrgChart with Views of one of my taxonomy vocabularies.
The question: is OrgChart supported to be used through Views? I haven't found much in the documentation.

I added 2 fields, the "term name" and the "parent-term name" (both aggregated - grouped). The result is some kind of chart, representing just the first term, two times.
From the attempts I have made, it looks like the table is somehow "transposed", so that I would need to invert "columns" and "rows", if it makes any sense (I am not a programmer at all).

It would be great to be able to get it to work... it's very promising!

Comments

#1

Category:support request» feature request

Well, actually there is no support for orgChart with views at this time.
But I really like the idea of using the taxonomy hierarchy for building the data structure, and display it through views.
I will look in to it, and try to figure it out.
If you got further helpful information or ideas please share.

Thanks.

#2

Unfortunately, I don't know enough to be helpful, but I can give you a couple of links to modules that do something similar.

The first a module to display taxonomy hierarchy trees with views:
http://drupal.org/project/views_tree

and the second is a thread where some code is posted to do orgcharts/views integrations, but I never got around to understand how to use it:
http://drupal.org/node/548854

I hope it helps.

#3

Status:active» needs review

Thanks for the links, I will test them.

I already pushed an Organizational Chart views support to the DEV branch.
http://drupalcode.org/project/google_chart_tools.git/commitdiff/43e8951d...

It will be great if you can give a try.
I added some instructions here:
http://drupalcode.org/project/google_chart_tools.git/blob/refs/heads/7.x...

#4

It works! The result is very good! Instructions are very clear as well.

The only issue so far: the layout is not very clean: light blue lines extends beyond the cell area. Image attached.
In this example, I only used the first three mandatory fields.
Great work, and fast too!

AttachmentSize
orgchart_example.jpg 41.43 KB

#5

Status:needs review» fixed

Added some styling to fix #4 issue.
http://drupalcode.org/project/google_chart_tools.git/commitdiff/976372be...

Release 7.x-1.1 contains the new Views support to Organizational Chart.

Thanks!

#6

The fix works!
I have another request: to enable nodes names to be linked to their content in the orgchart, the "allowHtml" tag should be set to TRUE, but I cannot find how to do it. Would it be dangerous to leave it true by default, or is it possible to have a switch somewhere?

Thanks again.

#7

I don't see a problem to set the allowHtml always to true.
Pused to DEV.
http://drupalcode.org/project/google_chart_tools.git/commitdiff/a4ddc471...

If there a problem and there need to turn it off, we can use hook_draw_chart_alter() to do that.
We can also add checkbox in the views format setting form to turn it off/on.

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here