|
|
|
@ -269,12 +269,16 @@ $(function () {
|
|
|
|
|
|
|
|
|
|
|
|
function pieHover(event, pos, obj)
|
|
|
|
function pieHover(event, pos, obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!obj)
|
|
|
|
|
|
|
|
return;
|
|
|
|
percent = parseFloat(obj.series.percent).toFixed(2);
|
|
|
|
percent = parseFloat(obj.series.percent).toFixed(2);
|
|
|
|
$("#hover").html('<span style="font-weight: bold; color: '+obj.series.color+'">'+obj.series.label+' ('+percent+'%)</span>');
|
|
|
|
$("#hover").html('<span style="font-weight: bold; color: '+obj.series.color+'">'+obj.series.label+' ('+percent+'%)</span>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function pieClick(event, pos, obj)
|
|
|
|
function pieClick(event, pos, obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!obj)
|
|
|
|
|
|
|
|
return;
|
|
|
|
percent = parseFloat(obj.series.percent).toFixed(2);
|
|
|
|
percent = parseFloat(obj.series.percent).toFixed(2);
|
|
|
|
alert(''+obj.series.label+': '+percent+'%');
|
|
|
|
alert(''+obj.series.label+': '+percent+'%');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|