ChartPoint.DataLabels

Syntax

DataLabels: Object;

Description

The DataLabels property contains object with data label settings of the chart data series point.

Comments

Use JSON or the setDataLabels method to set the property value, and the getDataLabels method to get the property value.

The object with settings can contain the following fields:

  1. Color"rgba(145, 143, 141, 1.000000)" // Color
  2. Enabled: true // Display attribute
  3. Font: Object // Font
  4. Mask: "%Autovalue" // Text mask
  5. Position: "Center" // Location
  6. Rotation: 0 // Rotation
  7. ValueFormat"#,##0.00"  // Number format

Example

The example of use is given on the Example of Creating a Stacked Histogram page.

See also:

ChartPoint