At Hogwarts, there are four houses:
toSentence(HOUSES). The bar chart below shows the
number of house points that each house received today.
How many house points did HOUSES[INDEX] receive?
init({range:[[-2,14],[-3,11.5]],scale:[27,30]}),_.times(10,function(e){label([0,e],10*e,"left",!1),style({stroke:"#000",strokeWidth:1,opacity:.2},function(){line([0,e],[13,e])})}),_.each(VALUES,function(e,r){style({stroke:null,fill:"#9ab8ed",opacity:1}),path([[3*r+1.5,0],[3*r+1.5,e/10],[3*r+2.5,e/10],[3*r+2.5,0],!0]),style({opacity:1}),label([3*r+2,0],HOUSES[r],"below",!1)}),style({stroke:"#000",strokeWidth:2,opacity:1}),line([0,0],[13,0]),line([0,0],[0,10]),label([6.5,-.8],$._("Casa"),"below",!1).css("font-weight","bold"),label([-1.5,5],"House points","center",!1).addClass("rotate").css("font-weight","bold"),label([6.5,10.5],"House points earned today","above",!1).css("font-weight","bold")
VALUES[INDEX] puntos de casa
Find the bar for HOUSES[INDEX].
style({stroke:PINK,fill:null,strokeWidth:2}),ellipse([3*INDEX+2,-.6],[1.5,.5])
No hay ninguna barra para HOUSES[INDEX], lo que significa que HOUSES[INDEX] recibió 0 puntos.
Compare the height of the bar for
HOUSES[INDEX] to the scale on the left.
style({stroke:PINK,strokeWidth:2,arrows:"->",strokeDasharray:"-"}),line([3*INDEX+1.5,VALUES[INDEX]/10],[0,VALUES[INDEX]/10])
HOUSES[INDEX] recibió VALUES[INDEX] puntos de casa.