Set chart y axis increments


Topic: Set chart y axis increments

jmztaylor pro premium asked a 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


kpienkowska staff answered a 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 pro premium commented a year ago

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


jmztaylor pro premium commented a year ago

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


jmztaylor pro premium answered 12 months ago

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


Grzegorz Bujański staff commented 12 months 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
  • User: Pro
  • 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
Tags