in src/TornadoChart.ts [1291:1328]
private enumerateLegend(settings: TornadoChartSettings): VisualObjectInstance[] {
let showTitle: boolean = true,
titleText: string = "",
legend: VisualObjectInstance[],
position: string;
showTitle = dataViewObject.getValue<boolean>(
this.dataView.legendObjectProperties,
legendProps.showTitle,
showTitle);
titleText = dataViewObject.getValue<string>(
this.dataView.legendObjectProperties,
legendProps.titleText,
titleText);
position = dataViewObject.getValue<string>(
this.dataView.legendObjectProperties,
legendProps.position,
legendPosition.top);
legend = [{
objectName: "legend",
displayName: this.localizationManager.getDisplayName(VisualizationText.Legend),
selector: null,
properties: {
show: settings.showLegend,
position: position,
showTitle: showTitle,
titleText: titleText,
fontSize: settings.legendFontSize,
labelColor: settings.legendColor,
}
}];
return legend;
}