@@ -19,7 +19,7 @@ var orgChart = (function () {
19
19
/* Configuration */
20
20
_duration = 750 , /* Duration of the animations */
21
21
_rectW = 180 , /* Width of the rectangle */
22
- _rectH = 150 , /* Height of the rectangle */
22
+ _rectH = 180 , /* Height of the rectangle */
23
23
_rectSpacing = 120 , /* Spacing between the rectangles */
24
24
_fixedDepth = 200 , /* Height of the line for child nodes */
25
25
_mode = "line" , /* Choose the values "line" or "diagonal" */
@@ -214,6 +214,36 @@ var orgChart = (function () {
214
214
return "Padding:" + d . Padding . Left + "," + d . Padding . Top + "," + d . Padding . Right + "," + d . Padding . Bottom ;
215
215
} ) ;
216
216
217
+ currentYOffset += _labelSize + _labelMargin ;
218
+ nodeEnter . append ( "text" )
219
+ . attr ( "x" , 5 )
220
+ . attr ( "y" , currentYOffset )
221
+ . attr ( "dy" , _labelSize + "px" )
222
+ . attr ( "text-anchor" , "left" )
223
+ . style ( "cursor" , function ( d ) { return ( d . children || d . _children || d . hasChild ) ? "pointer" : "default" ; } )
224
+ . text ( function ( d ) {
225
+ if ( d . HorizontalOptions === null || d . HorizontalOptions === undefined ) {
226
+ return "HorizontalOptions: N/A" ;
227
+ }
228
+
229
+ return "HorizontalOptions:" + d . HorizontalOptions ;
230
+ } ) ;
231
+
232
+ currentYOffset += _labelSize + _labelMargin ;
233
+ nodeEnter . append ( "text" )
234
+ . attr ( "x" , 5 )
235
+ . attr ( "y" , currentYOffset )
236
+ . attr ( "dy" , _labelSize + "px" )
237
+ . attr ( "text-anchor" , "left" )
238
+ . style ( "cursor" , function ( d ) { return ( d . children || d . _children || d . hasChild ) ? "pointer" : "default" ; } )
239
+ . text ( function ( d ) {
240
+ if ( d . VerticalOptions === null || d . VerticalOptions === undefined ) {
241
+ return "VerticalOptions: N/A" ;
242
+ }
243
+
244
+ return "VerticalOptions:" + d . VerticalOptions ;
245
+ } ) ;
246
+
217
247
nodeEnter . append ( "image" )
218
248
. attr ( "x" , _rectW )
219
249
. attr ( "y" , 0 )
0 commit comments