pie chart unhandled error fix (#9420)

This commit is contained in:
Peter Pisljar 2016-12-10 10:00:27 +01:00 committed by GitHub
parent 10c2136010
commit 5864f2b093

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,