ORG Chart Options

1,618 views
Skip to first unread message

TheInnovator

unread,
Nov 15, 2013, 2:39:58 PM11/15/13
to google-visua...@googlegroups.com
Hello,

Can somebody please show me how to use 'nodeClass' and 'selectedNodeClass'?  Can't find any examples.  Thanks!

http://jsfiddle.net/GTpgA/52/

asgallant

unread,
Nov 15, 2013, 3:03:47 PM11/15/13
to google-visua...@googlegroups.com
Here's how you use them:

chart.draw(data, {
    allowHtml:true,
    nodeClass: 'myNodeClass',
    selectedNodeClass: 'mySelectedNodeClass'
});

Declare classes in CSS to style the nodes, like this:

.myNodeClass {
    text-align: center;
    vertical-align: middle;
    font-family: arial,helvetica;
    cursor: default;
    border: 2px solid #b5d9ea;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.5) 3px 3px 3px;
    -moz-box-shadow: rgba(0, 0, 0, 0.5) 3px 3px 3px;
    background-color: #b0d7ee;
    background: -webkit-gradient(linear, left top, left bottom, from(#b0d7ff), to(#b0d7ee));
}
.mySelectedNodeClass {
    border: 2px solid #e38493;
    background-color: #eeb0d7;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffb0d7), to(#eeb0d7));
}

Isaac Sogunro

unread,
Nov 15, 2013, 3:16:57 PM11/15/13
to google-visua...@googlegroups.com
Nice! Thank You!


--
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/XsWguq4yNgA/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

Isaac Sogunro

unread,
Jan 25, 2016, 4:46:48 PM1/25/16
to google-visua...@googlegroups.com
Hi,

Is it possible to make the nodes bigger than they are or increase the size of the chart?

Thanks!

On Fri, Nov 15, 2013 at 3:03 PM, asgallant <drew_g...@abtassoc.com> wrote:

--
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/XsWguq4yNgA/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.
Reply all
Reply to author
Forward
0 new messages