From 32e47e3e72982368164e3db537751166c170af26 Mon Sep 17 00:00:00 2001 From: Helen Rodionova Date: Tue, 17 Jul 2018 11:12:57 +0300 Subject: [PATCH] fixes in constructor (#43) --- src/legend/legend.ts | 2 +- src/legend/svgLegend.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/legend/legend.ts b/src/legend/legend.ts index 0114a49..fd87c22 100644 --- a/src/legend/legend.ts +++ b/src/legend/legend.ts @@ -40,7 +40,7 @@ module powerbi.extensibility.utils.chart.legend { return new InteractiveLegend(legendParentElement); } - return new SVGLegend(legendParentElement, legendPosition, interactivityService, interactiveBehavior, isScrollable); + return new SVGLegend(legendParentElement, legendPosition, interactivityService, isScrollable, interactiveBehavior); } export function isLeft(orientation: LegendPosition): boolean { diff --git a/src/legend/svgLegend.ts b/src/legend/svgLegend.ts index 12af3c8..a6b14ac 100644 --- a/src/legend/svgLegend.ts +++ b/src/legend/svgLegend.ts @@ -135,8 +135,8 @@ module powerbi.extensibility.utils.chart.legend { element: HTMLElement, legendPosition: LegendPosition, interactivityService: IInteractivityService, - interactiveBehavior: IInteractiveBehavior, - isScrollable: boolean) { + isScrollable: boolean, + interactiveBehavior?: IInteractiveBehavior) { this.svg = d3.select(element) .append("svg")