I have created a pie chart and now use ImageMapster to style it all. When I click a piece of pie, I want all the other pieces to become selected (opacity), but not the one I clicked on.
Does anybody know how to accomplish this?
My code so far:
$('.pie').mapster({
stroke: true,
strokeOpacity: 1.0,
strokeColor: '000000',
strokeWidth: 1,
singleSelect: true,
fill: true,
fillColor: '0000ff',
fillOpacity: 0.25,
render_select:
{
fillOpacity: 0.75,
fillColor: '000000'
},
render_highlight:
{
fillOpacity: 0.5,
fillColor: '00ff00'
},
onClick: function(e) {
// Select all pies but not this one.
$('.pie area').mapster('select');
}
});