Topic: Theme with more contrast than default?

richb-hanover free asked 1 year ago


Actual behavior

I am reviving a site from 2019 that uses MDB Free 4.8.0. It's working OK, but the graphics are too "pastel" to show the difference between choices. (See pie chart below - it's hard to see the differences between the various slices.)

Desired behavior

I am looking to give different colors to the various slices that have more contrast. I don't know the right name for what I'm looking for - could someone point me to a good resource? Thanks!

Resources (screenshots, code snippets etc.)

enter image description here


Kamila Pieńkowska staff answered 1 year ago


Here is example with vivid colors that shows how to set custom colors: https://mdbootstrap.com/docs/b4/jquery/javascript/charts/#pie-chart


richb-hanover free commented 1 year ago

Thank you. I had not realized backgroundColor was what I needed to change.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.8.0
  • Device: Mac
  • Browser: Any
  • OS: Mac
  • Provided sample code: No
  • Provided link: No