{{ tocSubheader }}
| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount}} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount}} |
| {{ 'ml-lesson-time-estimation' | message }} |
Tina (Diskussion | bidrag) | Appe (Diskussion | bidrag) (Redigerar graf linjediagram987 via JXMagician.) | ||
Rad 6: | Rad 6: | ||
<jsxgpre id="linjediagram987" static=1> | <jsxgpre id="linjediagram987" static=1> | ||
var b = mlg.board([-12,131.25,131.25,-12],{keepaspectratio:false}); | var b = mlg.board([-12,131.25,131.25,-12],{keepaspectratio:false}); | ||
− | b.yaxis(25,1,'\\text{ | + | b.yaxis(25,1,'\\text{Pris}',{ticks:{minorHeight:-1}}); |
− | Pris | + | b.xaxis(25,1,'\\text{Dag}'); |
− | b.xaxis(25,1,'\\text{ | + | var aktie1 = b.curve([0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130],[50,48,46,51,53,56,54,62,69,80,82,81,78,85,83,81,56,45,35,32,34,36,37,37,40,45,42,45,56,56,58,59,57,61,62,67,63,65,75,77,75,68,69,74,79,76,74,79,80,85,90,94,110,107,105,108,99,102,108,120,119,117,123,122,130],null,null,{strokeColor:'blue'}); |
− | Dag | + | var aktie2 = b.curve([0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130],[110,108,112,113,109,105,104,102,103,107,102,80,82,84,83,81,90,88,86,89,95,75,73,76,72,71,78,73,67,30,34,35,32,31,25,27,28,30,34,36,40,47,62,63,60,62,61,64,64,62,70,74,71,69,68,70,71,72,75,74,72,65,69,62,59],null,null,{strokeColor:'red'}); |
− | var aktie1 = b. | ||
− | var aktie2 = b. | ||
aktie2.setAttribute({strokeColor:'red'}); | aktie2.setAttribute({strokeColor:'red'}); | ||
− | b.legend(aktie1,18,'\\text{ | + | b.legend(aktie1,18,'\\text{Aktie A}'); |
− | Aktie A | + | b.legend(aktie2,60,'\\text{Aktie B}'); |
− | b.legend(aktie2,60,'\\text{ | ||
− | Aktie B | ||
</jsxgpre> | </jsxgpre> | ||