简体   繁体   中英

Hiding the ticks on the X axis of Shield UI Chart

Is there a way to hide the ticks on the X axis? I am using a line type Shield UI chart. But I don't see any property that looks like the one I need:

axisX: {     
   ticksEnabled: false
}

or

axisX: {     
   ticksVisible: false
}

or anything like that. Since so is there another way to hide them?

There is not an explicit value used for enabling the ticks. However since you are looking for a visible effect, I could suggest the following code:

axisX:{
  categoricalValues: ['2009','2010','2011'],
  ticksHeight: 11,
  ticksWidth: 0
},

As you can see you can set the ticks Width (or Height) to 0 in order to make them disappear.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM