var board = JXG.JSXGraph.initBoard('box1', {
axis: true, boundingbox: [-1.8, 1.8, 1.8, -1.8], showcopyright: false,keepaspectratio: true, axis: false, zoom: false,showNavigation: false
});
var p1 = board.create('point', [-0.6, 1.5],{name:'A', size: 1,face:"", color:'blue', label: {offset:[-15,10], color:'blue'}} );
var p2 = board.create('point', [-1.2, -0.45],{name:'B', size: 1,face:"", color:'blue', label: {offset:[-15,10], color:'blue'}} );
var p3 = board.create('point', [0, -0.45],{name:'C', size: 1,face:"", color:'blue', label: {offset:[5,10], color:'blue'}} );
var l1 = board.create('segment', [p1, p2]);
var l2 = board.create('segment', [p2, p3]);
var l3 = board.create('segment', [p3, p1]);
var t = JXG.Math.Geometry.trueAngle(p2, p1, p3).toFixed(0) + '°';
a = board.create('angle', [p2, p1, p3],{name: t,label: {offset:[-8,0], color:'blue'} });
//alert(a.Value()*180/Math.PI)
// var t1 = board.create('text',[0,1,function() { return JXG.toFixed(a.Value()*180/Math.PI, 2); }]);
//var t1 = board.create('text',[0,1,t]);