Constructors
constructor
- new D3Legend(svg: Selection<d3.BaseType, __type, d3.BaseType, any>, legend: ILegend, title: string, rect?: Rect): D3Legend
-
Parameters
-
svg: Selection<d3.BaseType, __type, d3.BaseType, any>
-
-
title: string
-
Optional rect: Rect
Methods
Protected renderDiscreteLegend
- renderDiscreteLegend(orientation: any): void
Protected renderGradientLegend
- renderGradientLegend(): void
setPosition
- setPosition(rect: Rect): void