67
67
margin : 2px ;
68
68
}
69
69
70
+ .clear {
71
+ clear : both;
72
+ }
73
+
74
+ .left_6 {
75
+ float : left;
76
+ width : 160px ;
77
+ margin : 0px ;
78
+ padding : 0px ;
79
+ }
80
+
70
81
# legend {
71
82
text-align : center;
72
83
}
115
126
< div id ="graph7 " class ="rightGraph "> </ div >
116
127
< div id ="graph8 " class ="leftGraph "> </ div >
117
128
< div id ="graph9 " class ="rightGraph "> </ div >
118
- < h2 id ='g10 ' style ="color: blue; margin-top: 20px; "> A line of two dependent graphs on the same value range and legend</ h2 >
129
+
130
+ < div class ="clear "> </ div >
131
+ < h2 id ='g10 ' style ="color: blue; margin-top: 50px; "> A line of two dependent graphs on the same value range and legend</ h2 >
119
132
< p > Click legend labels bellow to toggle (show/hide) series:</ p >
120
133
< p id ="legend ">
121
134
< span id ="legend_this_year " class ="legend "> This Year Performance</ span >
@@ -125,8 +138,16 @@ <h2 id='g10' style="color: blue; margin-top: 20px;">A line of two dependent grap
125
138
</ p >
126
139
< div id ="graph10 " class ="leftGraph "> </ div >
127
140
< div id ="graph11 " class ="rightGraph "> </ div >
128
- < div id ="graph12 " class ="leftGraph "> </ div >
129
- < div id ="graph13 " class ="rightGraph "> </ div >
141
+
142
+ < div class ="clear "> </ div >
143
+ < h2 id ='g10 ' style ="color: blue; margin-top: 50px; "> 6 Horinzontal Bar Graphs connected through their grids, the left-most holding only the labels</ h2 >
144
+ < div class ="clear "> </ div >
145
+ < div id ="graph12 " class ="left_6 "> </ div >
146
+ < div id ="graph13 " class ="left_6 "> </ div >
147
+ < div id ="graph14 " class ="left_6 "> </ div >
148
+ < div id ="graph15 " class ="left_6 "> </ div >
149
+ < div id ="graph16 " class ="left_6 "> </ div >
150
+ < div id ="graph17 " class ="left_6 "> </ div >
130
151
</ div >
131
152
132
153
< script type ="text/javascript ">
@@ -409,6 +430,53 @@ <h2 id='g10' style="color: blue; margin-top: 20px;">A line of two dependent grap
409
430
set_legend ( [ g10 ] , [ 2 ] , $ ( 'legend_intermitent' ) ) ;
410
431
set_legend ( [ g11 ] , [ 1 ] , $ ( 'legend_moving_average' ) ) ;
411
432
433
+ var countries = [
434
+ "Zimbabwe" , "Ireland" , "Argentina" , "New Zealand" , "Sri Lanka" , "Finland"
435
+ ] ;
436
+
437
+ var data = [
438
+ [ 1500 , 1200 , 750 , 845 , 756 , 124 ] ,
439
+ [ 45 , 78 , 21 , 102 , 51 , 87 ] ,
440
+ [ 17 , 21 , 15 , 18 , 8 , 12 ] ,
441
+ [ 54 , 87 , 12 , 201 , 15 , 78 ] ,
442
+ [ 51 , 21 , 57 , 548 , 657 , 421 ]
443
+ ] ;
444
+
445
+ var options = {
446
+ labels : {
447
+ values : countries , long_values : countries ,
448
+ marker_size : 0 ,
449
+ font : { fill : 'blue' } ,
450
+ grid : { through : true
451
+ , 'stroke-width' : 1
452
+ , stroke : '#ccc'
453
+ }
454
+ }
455
+ , value_labels : {
456
+ marker_size : 3 ,
457
+ font : { fill : 'white' }
458
+ }
459
+ , units : ''
460
+ , color : '#ccccff'
461
+ , axis : false
462
+ , status_bar : true
463
+ , width : 161
464
+ , height : 140
465
+ , x_padding_left : 20
466
+ , x_padding_right : 0
467
+ }
468
+
469
+ new Ico . HorizontalBarGraph ( "graph12" , [ null , null , null , null , null , null ] , options ) ;
470
+ options . labels . values = [ '' , '' , '' , '' , '' , '' ] ;
471
+ options . value_labels . font . fill = "black" ;
472
+ options . x_padding_right = 20 ;
473
+
474
+ new Ico . HorizontalBarGraph ( "graph13" , data [ 0 ] , options ) ;
475
+ new Ico . HorizontalBarGraph ( "graph14" , data [ 1 ] , options ) ;
476
+ new Ico . HorizontalBarGraph ( "graph15" , data [ 2 ] , options ) ;
477
+ new Ico . HorizontalBarGraph ( "graph16" , data [ 3 ] , options ) ;
478
+ new Ico . HorizontalBarGraph ( "graph17" , data [ 4 ] , options ) ;
479
+
412
480
/*
413
481
new Ico.LineGraph(
414
482
document.getElementById( 'graph12' )
0 commit comments