dundas.controls.ChartDataLabelSettings Class

Defines the settings for a label to be displayed in or adjacent to each chart data point.
 

Inheritance Hierarchy

 
Class
   dundas.controls.ChartDataLabelSettings
 

Constructors

 
  Name Description
init Initializes the instance. Called during construction.
 
 

Properties

 
  Name Description
color Gets or sets the color of the text when displayed outside of data.
fontFamily Gets or sets the label's font family.
fontSize Gets or sets the label's font size.
fontStyle Gets or sets the label's font style.
fontVariant Gets or sets the label's font variant.
fontWeight Gets or sets the label's font weight.
insideAlignment Gets or sets the alignment of the text when inside a data point.
insideDarkColor Gets or sets the color of the text when displayed over its data, to contrast against light colors.
insideLightColor Gets or sets the color of the text when displayed over its data, to contrast against dark colors.
insideMargin The amount of space in pixels to leave empty between the label and the edge of the data point when placed inside.
maxMovingDistance Gets or sets the maximum number of pixels the label can be moved from the centre of one side of the data point when placed outside to avoid overlap.
outsideAlignment Gets or sets the alignment of the label relative its data point when placed outside.
outsideCanOverlapData Gets or sets a value indicating whether the label can be placed outside even if forced to overlap with a data point.
outsideCanOverlapLabels Gets or sets a value indicating whether the label can be placed outside even if forced to overlap with other labels.
placement Gets or sets the placement used to position the label relative to its data point.
rotation The rotations to apply to the label to fit it without overlap.
text Gets or sets the text including keywords to display in the label.
textAlign Gets or sets the alignment of the text for labels with multiple lines of different lengths.
 
 

Methods

 
  Name Description
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
toString Returns a string representation of this object.