rendro/easy-pie-chart

Different charts sizes?

RichardMisencik opened this issue · 3 comments

Hi, Is it possible to use different chart sizes and colors for different charts based on class or data attribute or whatever?. The idea:

$('.chart').easyPieChart({
    size: 80
});

$('.chart.big').easyPieChart({
    size: 100
});
Romz commented

Subscribe

yes but you have to make sure the selectors are mutually exclusive.

In your case the first call

$('.chart').easyPieChart({
    size: 80
});

also creates charts for .chart.big.

This should work:

$('.chart.small').easyPieChart({
    size: 80
});

$('.chart.big').easyPieChart({
    size: 100
});

Oh right that makes sense, thanks