Search results

DataLabelSettingsModel API in Vue Pivot Table API component

Interface for a class DataLabelSettings

Properties

alignment

Alignment

Allows to set the alignment for data Label. They are,

  • Near: Aligns the label to the left of the point.
  • Center: Aligns the label to the center of the point.
  • Far: Aligns the label to the right of the point.

angle

number

Allows to specify the rotation angle to data label.

border

PivotChartBorderModel

Allows option for customizing the border lines.

enableRotation

boolean

Allows to set whether rotation to data label is enable or not.

fill

string

Allows to set the background color of the data label accepts value in hex and rgba as a valid CSS color string.

font

PivotChartFontModel

Allows option for customizing the data label text.

margin

PivotChartMarginModel

Allows customize the margin to the data label.

name

string

Allows to set the data source field that contains the data label value.

opacity

number

Allows to set the opacity to the background.

position

LabelPosition

Allows to specify the position of the data label. They are,

  • Outer: Positions the label outside the point.
  • top: Positions the label on top of the point.
  • Bottom: Positions the label at the bottom of the point.
  • Middle: Positions the label to the middle of the point.
  • Auto: Positions the label based on series.

rx

number

Allows to set the roundedCornerX for the data label. It requires border values not to be null.

ry

number

Allows to set the roundedCornerY for the data label. It requires border values not to be null.

template

string | Function

Allows custom template to show the data label. Use ${point.x} and ${point.y} as a placeholder text to display the corresponding data point.

visible

boolean

Allows to set the visibility of data label to the series renders.