Difference between revisions of "Fine tuning of labels"

From JSXGraph Wiki
Jump to: navigation, search
(Created page with "Center the position of labels and use custum CSS styles for labels. <html> <style type="text/css"> .myLabel { border: 1px solid black; border-radius: 3px; padding: 2p...")
 
Line 25: Line 25:
  
 
var p3 = board.create('point', [2, 3],  
 
var p3 = board.create('point', [2, 3],  
     {size:20,  
+
     {size:10,  
 
     fillColor: 'none',
 
     fillColor: 'none',
 
     label: {  
 
     label: {  
         offset: [0, 20],
+
         offset: [0, 15],
 
         anchorX: 'middle',
 
         anchorX: 'middle',
 
         anchorY: 'bottom',
 
         anchorY: 'bottom',

Revision as of 12:23, 9 April 2014

Center the position of labels and use custum CSS styles for labels.

The underlying JavaScript code