xaxis = board.create('axis', [[0, 0], [1,0]],
{name:'m', withLabel: true,
label: {position: 'rt', // possible values are 'lft', 'rt', 'top', 'bot'
offset: [-5, 15], // (in pixels)
},
ticks: {
label: {
anchorX: 'middle',
anchorY: 'top',
offset: [0, -3]
}
}
});
board2 = JXG.JSXGraph.initBoard('load2', {
boundingbox: [-0.1, 10, 5.2, -10],
axis: true,
defaultAxes: {
y: {
visible: false
}
},
grid: false,
zoom: false, showNavigation: false
});
var x = board.create('axis', [[0, -2], [1, -2]], {
ticks: {
strokeColor: 'blue',
drawZero: true // Show zero
}
});
x.defaultTicks.setAttribute({
drawZero: false // Hide zero
});
Hello Alfred,