* fix pie chart for ie8.
This commit is contained in:
@@ -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)
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user