Topic: Set chart y axis increments

jmztaylor premium asked 1 year ago


Is it possible to have only whole numbers show and no decimal places? My charts will only ever be whole numbers so don't care to see the rest.

enter image description here


Kamila Pieńkowska staff answered 1 year ago


I've prepared a snippet to show you how to set options to show only whole numbers, without a decimal point.

https://mdbootstrap.com/snippets/standard/kpienkowska/5144853#js-tab-view


jmztaylor premium commented 1 year ago

I am initializing the chart in HTML. Is there a way to set options without JS?


jmztaylor premium commented 1 year ago

Nevermind. I just moved to init the charts from js.


jmztaylor premium answered 1 year ago


Circling back to this, is there an option to do from html?


Grzegorz Bujański staff commented 1 year ago

Unfortunately not. Options can only be passed via JS.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: Pc
  • Browser: Chrome
  • OS: w11
  • Provided sample code: No
  • Provided link: No