Topic: Changing min-chart color depend on percent
Bartłomiej Malanowski staff pro premium answered 6 years ago
$(function () { $('#minChart').easyPieChart({ barColor: function (percent) { return (percent < 40 ? '#ff4444' : percent < 80 ? '#ffbb33' : '#00C851'); }, onStep: function (from, to, percent) { $(this.el).find('.percent').text(Math.round(percent)); } }); });
jouvrard pro answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.9
- Device: PC
- Browser: All
- OS: Windows 10
- Provided sample code: No
- Provided link: No