{{ tocSubheader }}
| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }} |
| {{ 'ml-lesson-time-estimation' | message }} |
Estellecapor1@gmail.com (Diskussion | bidrag) (Den här versionen är märkt för översättning) | Appe (Diskussion | bidrag) (Redigerar graf graph123 via JXMagician.) | ||
Rad 17: | Rad 17: | ||
b.segment([function(){return p1.X();},0],p1,{withLabel:false}); | b.segment([function(){return p1.X();},0],p1,{withLabel:false}); | ||
var yArrow = b.segment(p1,[0,function(){return p1.Y();}],{withLabel:false, lastArrow:true, touchLastPoint:false}); | var yArrow = b.segment(p1,[0,function(){return p1.Y();}],{withLabel:false, lastArrow:true, touchLastPoint:false}); | ||
− | var t = b.txt(3,-2.5,' | + | var t = b.txt(3,-2.5,'<!--T:8--> Funktionsvärde: '+p1.Y().toFixed(1),{flag:true, mathMode:false, fontSize:1.1}); |
$(b.getId(t)).css({ | $(b.getId(t)).css({ | ||
"width":"43%", | "width":"43%", | ||
"text-align":"center" | "text-align":"center" | ||
}); | }); | ||
− | b.changeText(t,' | + | b.changeText(t,'<!--T:10--> Funktionsvärde: 2.0'); |
setTimeout(function(){b.board.update();},0); | setTimeout(function(){b.board.update();},0); | ||
mlg.af("graph123.movePoint", function(val){ | mlg.af("graph123.movePoint", function(val){ | ||
p1.moveTo([val, f.Y(val)]); | p1.moveTo([val, f.Y(val)]); | ||
− | b.changeText(t,' | + | b.changeText(t,'<!--T:9--> Funktionsvärde: '+ p1.Y().toFixed(1)); |
if (Math.abs(p1.X()) < padding) { | if (Math.abs(p1.X()) < padding) { | ||
yArrow.setAttribute({lastArrow:false}); | yArrow.setAttribute({lastArrow:false}); |