MindFusion.Charting for JavaScript Programmer's Guide
LegendRenderer Members
Constructors Properties Methods
 


A component that renders chart legend.

The following tables list the members exposed by the LegendRenderer type.

 Public Constructors

  Name Description

LegendRenderer

Initializes a new instance of the LegendRenderer class.

 Public Properties

  Name Description

allowMove

Gets or sets a value indicating whether users are allowed to move this legend.

background

Gets or sets the Brush that should be used to fill the background of this legend.

borderStroke

Gets or sets the Brush that should be used to stroke the borders of this legend.

borderStrokeDashStyle

Gets or sets the stroke dash style of legend borders.

borderStrokeThickness

Gets or sets the stroke thickness of legend borders.

content

Gets or sets a list of SeriesRenderer objects whose Series should be displayed in this legend.

elementLabelKind

Gets or sets the type of label to show for series elements. This property is used only when showSeriesElements is set to true.

maxItemsPerColumn

Gets or sets the maximum number ot items per display column.

padding

Gets or sets the padding space between content and borders of this legend.

showSeriesElements

Gets or sets a value, indicatating whether this legend will display individual series element labels instead of the series titles.

showTitle

Gets or sets a value indicating whether to display the legend title.

spacing

Gets or sets the distance between adjacent entries in the legend.

title

Gets or sets the legend's title.

titleBrush

Gets or sets the Brush that should be used to draw the legend's Title.

titleFontName

Gets or sets the name of font that should be used to draw the legend's Title.

titleFontSize

Gets or sets the size of font that should be used to draw the legend's Title.

titleFontStyle

Gets or sets the style of font that should be used to draw the legend's Title.

 Public Methods

  Name Description

createController

Component.CreateController override. Returns a ComponentController used to interact with this component.

draw

Component.Draw override. Draws legend elements in specified RenderContext.

effectiveBorderPen

Gets the Pen that should be used to draw the legend borders.

effectiveBorderStroke

Gets the Brush that should be used to stroke the legend borders.

effectiveBorderStrokeThickness

Gets the thickness of border strokes.

effectiveFill

Gets the Brush that should be used to fill the legend background.

effectiveStrokeDashStyle

Gets the dash style of border strokes.

effectiveTitleBrush

Gets the Brush that should be used to draw the legend's Title.

effectiveTitleFont

Gets the Font that should be used to draw the legend's Title.

measure

Component.Measure override. Measures the desired size of this component.

 See Also

LegendRenderer Class
MindFusion.Charting Namespace