Aligning text: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 10: Line 10:
     var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox: [-1,10,7,-1], axis:true, keepAspectRatio:false});
     var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox: [-1,10,7,-1], axis:true, keepAspectRatio:false});


    brd.create('line', [-3, 1, 0]);
     brd.create('text', [3, 8, "Default"], {cssClass:'mytext'});
     brd.create('text', [3, 8, "Default"], {cssClass:'mytext'});
     brd.create('text', [3, 7, "Anchor left"], {anchorX:'left', cssClass:'mytext'});
     brd.create('text', [3, 7, "Anchor left"], {anchorX:'left', cssClass:'mytext'});

Revision as of 07:48, 19 October 2012

The underlying JavaScript code