Re: [visualization-api] Re: OrgChart Customization

2010-12-12 Thread MC Get Vizzy
Can you use the OrgChart's setSelection() method?

thanks,

MC Get Vizzy

On Fri, Dec 10, 2010 at 11:16 PM, naven87 nave...@gmail.com wrote:

 You use the getFilteredRows function on the DataTable to select the
 cell(s) you want to highlight.  In the example below column 6 is a
 column which indicates User Role, then use the setRowProperty on those
 rows highlight.  I create a separate function to simplify.  Example
 below.
 

 function set_row (rows, style) {
for (r in rows) {
data.setRowProperty(rows[r],'style',style);
}
 }

  var evp_rows = data.getFilteredRows([{column: 6, value: EVP}]);
  set_row(evp_rows,background-color:#EEF);

 --
 You received this message because you are subscribed to the Google Groups
 Google Visualization API group.
 To post to this group, send email to
 google-visualization-...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-visualization-api+unsubscr...@googlegroups.comgoogle-visualization-api%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



Re: [visualization-api] Re: OrgChart Customization

2010-12-12 Thread Prathibha Mendon
Thanks a lot.. It worked..

On Sat, Dec 11, 2010 at 2:46 AM, naven87 nave...@gmail.com wrote:

 You use the getFilteredRows function on the DataTable to select the
 cell(s) you want to highlight.  In the example below column 6 is a
 column which indicates User Role, then use the setRowProperty on those
 rows highlight.  I create a separate function to simplify.  Example
 below.
 

 function set_row (rows, style) {
for (r in rows) {
data.setRowProperty(rows[r],'style',style);
}
 }

  var evp_rows = data.getFilteredRows([{column: 6, value: EVP}]);
  set_row(evp_rows,background-color:#EEF);

 --
 You received this message because you are subscribed to the Google Groups
 Google Visualization API group.
 To post to this group, send email to
 google-visualization-...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-visualization-api+unsubscr...@googlegroups.comgoogle-visualization-api%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.




-- 
Thanks and Regards,

Prathibha Mendon

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



[visualization-api] Re: OrgChart Customization

2010-12-10 Thread naven87
You use the getFilteredRows function on the DataTable to select the
cell(s) you want to highlight.  In the example below column 6 is a
column which indicates User Role, then use the setRowProperty on those
rows highlight.  I create a separate function to simplify.  Example
below.


function set_row (rows, style) {
for (r in rows) {
data.setRowProperty(rows[r],'style',style);
}
}

 var evp_rows = data.getFilteredRows([{column: 6, value: EVP}]);
 set_row(evp_rows,background-color:#EEF);

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



[visualization-api] Re: OrgChart Customization

2010-12-09 Thread Prathibha
Thanks for your replies guys.

I need to highlight a particular node when the page loads( say the
first node or top node with different background color.). Is this
possible? As of now, I can see, when you click on the node, the node
can be highlighted:

Please refer the image attached in the previous post for reference.
If possible, can someone show me with a simple example.

On Dec 6, 2:08 pm, naven87 nave...@gmail.com wrote:
 It is possible ,although I think the arrows particularly down will be
 more complicated since the OrgChart doesn't include that, and also
 doesn't provide any external cues to the hierarchy that would help
 determine which nodes require up and down arrows.  What is the data
 source?  Will it supply only the information required for the specific
 view you show (no extra higher or lower levels), if not you will have
 to create logic to determine the extra layers and hide the rows in
 the dataview so that they aren't displayed.  You example does not show
 any fanout but I'm assuming if there were multiple subordinates then
 each would have a down arrow in your app?  If so then you will need
 additional customization to add the arrow to HTML of the formatted
 value of the cells in the lower row.  I would suggest an alternate
 user interface where there isn't the unique arrows, but clicking on
 the cell (or some element of the cell) causes it to become the center
 of redrawn orgchart.

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



[visualization-api] Re: OrgChart Customization

2010-12-06 Thread naven87
It is possible ,although I think the arrows particularly down will be
more complicated since the OrgChart doesn't include that, and also
doesn't provide any external cues to the hierarchy that would help
determine which nodes require up and down arrows.  What is the data
source?  Will it supply only the information required for the specific
view you show (no extra higher or lower levels), if not you will have
to create logic to determine the extra layers and hide the rows in
the dataview so that they aren't displayed.  You example does not show
any fanout but I'm assuming if there were multiple subordinates then
each would have a down arrow in your app?  If so then you will need
additional customization to add the arrow to HTML of the formatted
value of the cells in the lower row.  I would suggest an alternate
user interface where there isn't the unique arrows, but clicking on
the cell (or some element of the cell) causes it to become the center
of redrawn org chart.

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.