Skip to content

Latest commit

 

History

History
239 lines (188 loc) · 8.93 KB

datachart-configuring-scalelegend.adoc

File metadata and controls

239 lines (188 loc) · 8.93 KB

Configuring Scale Legend

This topic provides information on how to configure pick:[wpf,win-universal=" ScaleLegend"] pick:[win-forms=" UltraScaleLegend"] pick:[xamarin=" XFScaleLegend"] pick:[android=" ScaleLegendView"] control and explains, with code examples, how to use it with Chart Series in the {DataChartName}™ control.

The topic is organized as follows:

Introduction

The Scale Legend is a special type of legend that shows how the colors in the Brushes collection of the ValueBrushScale or CustomPaletteBrushScale are distributed among bubbles of the BubbleSeries. It also displays the lowest and the highest values from a data column that is mapped to the FillMemberPath property of BubbleSeries. For more information on how to use brush scales, please refer to the Scatter Bubble Series topic. pick:[wpf,win-universal="Also, legend has a legend title that is displayed above legend items."]

Properties

The Item Legend control shares common properties with other type of chart legends. Refer to the Chart Legends topic for a complete list of these common properties.

Requirements

The Scale Legend can be used with BubbleSeries only if the series meet the binding requirements listed in the following table.

Series Property Property Type Object to bind to

Determines which Scale Legend to bind to the series

BrushScale

ValueBrushScale or CustomPaletteBrushScale defining brush scale for bubbles

string

Specifies data column for interpolating brush of bubbles if the ValueBrushScale is bound to FillScale property

Code Example

This code snippet demonstrates how to bind Scale Legend to Bubble Series with ValueBrushScale as a fill scale of bubbles

xamDataChart Legends 03

Figure 2: A ScaleLegend bound to BubbleSeries with ValueBrushScale as a fill scale of bubbles

Related Topics