JsxGraph Nur positive Achse einschließlich NullJavaScript

Javascript-Forum
Anonymous
 JsxGraph Nur positive Achse einschließlich Null

Post by Anonymous »

Wie der Titel sagt, wie definiere ich die Standardachsen (sowohl x als auch y), dass sie mit 0 beginnen, nur in eine positive Richtung gehen und ein Zecken und ein Etikett bei Null haben. Irgendwelche Ideen?
Hier ist der relevante Teil: < /p>

Code: Select all

axis:true,
defaultAxes: {
x: {
straightFirst:false,
strokeWidth: 1,
strokeColor: "#000000",
ticks: {
strokeColor: "#000000",
drawZero: true,
insertTicks: false,
ticksDistance: 1,
strokeOpacity: 1,
strokeWidth: 1,
majorHeight: 5,
minorTicks:false,
majorTickEndings: [0,1]} },
y: {
straightFirst:false,
strokeWidth: 1,
strokeColor: "#000000",
ticks: {
drawZero: true,
strokeColor: "#000000",
insertTicks: false,
ticksDistance: 1,
strokeOpacity: 1,
strokeWidth: 1,
majorHeight: 5,
minorTicks:false,
majorTickEndings: [1,0]} }
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post