Topic: Minimalist Chart Size
Marta Szymanska staff pro premium answered 7 years ago
Hi,
add this code to your CSS:
.min-chart {
width: 300px;
height: 300px;
}
.min-chart .percent {
line-height: 300px;
}
add "size" parameter to your inicialization of "min-chart" like this:
$(function () {
$('.min-chart#chart-sales').easyPieChart({
barColor: "#4caf50",
size: 300,
onStep: function (from, to, percent) {
$(this.el).find('.percent').text(Math.round(percent));
}
});
});
Best,
Marta 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: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No