File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 587587 const chartPanel = layout . append ( "div" )
588588 . attr ( "class" , "never-chart-panel" ) ;
589589
590- drawContinentSummary ( mapPanel , data . byContinent ) ;
591590 drawMap ( mapPanel , data ) ;
592591 drawBarChart ( chartPanel , data . topCountries ) ;
593592 }
697696 } ;
698697 }
699698
700- function drawContinentSummary ( container , data ) {
701- const summary = container . append ( "div" )
702- . attr ( "class" , "never-continent-summary" ) ;
703-
704- summary . selectAll ( "div" )
705- . data ( data )
706- . join ( "div" )
707- . attr ( "class" , "never-continent-card" )
708- . html ( d => `
709- <div class="never-continent-name">
710- <span class="never-continent-dot" style="background:${ continentColors [ d . continent ] || "#c9c9c9" } "></span>
711- ${ d . continent }
712- </div>
713- <div class="never-continent-count">${ d . countries } </div>
714- <div class="never-continent-detail">countries · ${ d3 . format ( "," ) ( d . participations ) } participations</div>
715- ` ) ;
716- }
717-
718699 function drawMap ( container , data ) {
719700 const width = 860 ;
720701 const height = 520 ;
You can’t perform that action at this time.
0 commit comments