Skip to content

Commit

Permalink
Fix Khan#7502 - Add labels to charts
Browse files Browse the repository at this point in the history
  • Loading branch information
majek authored and beneater committed Dec 7, 2011
1 parent 6cba0d8 commit 5aaf466
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exercises/slope_of_a_line.html
Expand Up @@ -146,6 +146,8 @@
});

style({ stroke: COLORS[index].hex });
label([0,-6], "\\color{<var>" + COLORS[index].hex + "</var>}" +
"{\\text{" + COLORS[index].name + "}}", "below");
plot(function( x ) {
return ( x - 1 ) * SLOPES[index].value + B;
}, [ -11, 11 ]);
Expand Down Expand Up @@ -192,4 +194,4 @@
</div>
</div>
</body>
</html>
</html>

0 comments on commit 5aaf466

Please sign in to comment.