Polar grid: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 2: Line 2:
var board = JXG.JSXGraph.initBoard('jxgbox', {axis:false, boundingbox:[-5, 5, 5, -5]});
var board = JXG.JSXGraph.initBoard('jxgbox', {axis:false, boundingbox:[-5, 5, 5, -5]});


var ax1 = board.create('axis', [[0,0], [1,0]], {ticks: {type: 'polar', label: {offset:[0, 5]}}});
var ax1 = board.create('axis', [[0,0], [1,0]], {ticks: {type: 'polar', label: {offset:[0, -3]}}});
var ax2 = board.create('axis', [[0,0], [0,1]], {ticks: {visible: false, label: {visible: true, offset: [5, 0]}}});
var ax2 = board.create('axis', [[0,0], [0,1]], {ticks: {visible: false, label: {visible: true, offset: [-6, 0]}}});


</jsxgraph>
</jsxgraph>

Revision as of 09:35, 31 March 2020

The underlying JavaScript code