- Fix build on backwards compatibility tooltipOptions

This commit is contained in:
Bart Van Houtte 2020-10-13 16:03:44 +02:00
parent b552cde7de
commit cf7ffa0d2d
10 changed files with 10 additions and 10 deletions

View File

@ -1817,7 +1817,7 @@ class AggregationChart extends BaseChart {
configure(args) {
super.configure(args);
this.config.formatTooltipY = args.tooltipOptions.formatTooltipY;
this.config.formatTooltipY = (args.tooltipOptions || {}).formatTooltipY;
this.config.maxSlices = args.maxSlices || 20;
this.config.maxLegendPoints = args.maxLegendPoints || 20;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ export default class AggregationChart extends BaseChart {
configure(args) {
super.configure(args);
this.config.formatTooltipY = args.tooltipOptions.formatTooltipY;
this.config.formatTooltipY = (args.tooltipOptions || {}).formatTooltipY;
this.config.maxSlices = args.maxSlices || 20;
this.config.maxLegendPoints = args.maxLegendPoints || 20;
}