pie chart unhandled error fix (#9440)

Backports PR #9420

**Commit 1:**
pie chart unhandled error fix

* Original sha: 4261d7cb79
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T09:40:53Z
This commit is contained in:
jasper 2016-12-10 04:25:34 -05:00 committed by Peter Pisljar
parent aa828cde5d
commit 1668d740c7

View file

@ -40,7 +40,7 @@ export default function DispatchClass(Private, config) {
const slices = isSlices ? data.slices : undefined;
const handler = this.handler;
const color = _.get(handler, 'data.color');
const isPercentage = (handler && handler.visConfig.get('mode') === 'percentage');
const isPercentage = (handler && handler.visConfig.get('mode', 'normal') === 'percentage');
const eventData = {
value: d.y,