This repository was archived by the owner on Nov 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 45
45
break ;
46
46
47
47
}
48
+
48
49
}
49
50
50
51
/* *
90
91
$ (" #chart" ).hide ();
91
92
break ;
92
93
default :
94
+ console .log (" changeViz: default case" )
93
95
$ (" #lineVizToggle" ).hide ();
94
96
$ (" #barVizToggle" ).hide ();
95
97
$ (" #pieChart" ).hide ();
100
102
break ;
101
103
102
104
}
105
+
106
+ // this is a bit of a hack, it causes the visualizations to be re-rendered everytime you
107
+ // change the visualization we are looking at.
108
+ $ (window ).trigger (' resize' );
103
109
}
104
110
</script >
105
111
<body >
260
266
var d = new Date (data .latest * 1000 );
261
267
262
268
$ (" #exec-date" ).show ();
263
- $ (" #exec-date" ).text (" Latest Execution: " + d .getFullYear ()+ " -" + (" 0" + (d .getMonth ()+ 1 )).slice (- 2 ) + " -" + d .getDate ());
269
+ $ (" #exec-date" ).text (" Latest Execution: " + d .getFullYear ()+ " -" + (" 0" + (d .getMonth ()+ 1 )).slice (- 2 ) + " -" + ( " 0 " + d .getDate ()). slice ( - 2 ));
264
270
265
271
}else {
266
272
340
346
341
347
if (data .script === ' ratioViz' ){
342
348
343
- barVis ({{{json visualization}}}, " #barChart" );
344
349
lineVis ({{{json visualization}}}, " #lineChart" );
345
350
pieVis ({{{json visualization}}}, " #pieChart" );
351
+ barVis ({{{json visualization}}}, " #barChart" );
346
352
347
353
}else {
348
354
Original file line number Diff line number Diff line change 749
749
. selectAll ( ".pie" )
750
750
. data ( allData )
751
751
. enter ( ) . append ( "g" )
752
- . call ( function ( d ) {
753
- console . log ( d ) ;
754
- return ;
755
- } )
756
752
. attr ( "class" , "pie" )
757
753
. attr ( "transform" , function ( d , i ) {
758
754
return "translate(" + i * pieSpacing + ",0)" ;
You can’t perform that action at this time.
0 commit comments