* fix pie chart for ie8.

This commit is contained in:
Catouse
2015-05-19 17:23:07 +08:00
parent f707f38e9f
commit a097785af8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -49,6 +49,11 @@ if($config->debug)
});
if(data.length > 1) options.scaleLabelPlacement = 'outside';
else if(data.length === 1)
{
options.scaleLabelPlacement = 'inside';
data.push({label: '', value: data[0].value/2000, color: '#fff', showLabel: false})
}
chart = $canvas.pieChart(data, options);
$canvas.on('mousemove', function(e)
+1 -1
View File
File diff suppressed because one or more lines are too long