Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • _AmBalloon
    • AmBalloon

Index

Constructors

constructor

  • Returns AmBalloon

Properties

adjustBorderColor

adjustBorderColor: boolean

If this is set to true, border color instead of background color will be changed when user rolls-over the slice, graph, etc.

borderAlpha

borderAlpha: number

Balloon border opacity. Value range is 0 - 1.

default

1

borderColor

borderColor: string

Balloon border color. #FFFFFF

borderThickness

borderThickness: number

Balloon border thickness.

default

2

color

color: string

Color of text in the balloon. #FFFFFF

cornerRadius

cornerRadius: number

Balloon corner radius.

default

6

fillAlpha

fillAlpha: number

Balloon background opacity.

default

1

fillColor

fillColor: string

Balloon background color. Usually balloon background color is set by the chart. Only if "adjustBorderColor" is "true" this color will be used.

default

"#CC0000"

fontSize

fontSize: string

Size of text in the balloon. Chart's fontSize is used by default.

horizontalPadding

horizontalPadding: number

Horizontal padding of the balloon.

default

8

pointerWidth

pointerWidth: number

The width of the pointer (arrow) "root". Only used if cornerRadius is 0.

default

10

showBullet

showBullet: boolean

If cornerRadius of a balloon is >0, showBullet is set to true for value balloons when ChartCursor is used. If you don't want the bullet near the balloon, set it to false: chart.balloon.showBullet = false

textAlign

textAlign: string

Text alignment, possible values "left", "middle" and "right" middle

textShadowColor

textShadowColor: string

Color of the text shadow. #000000

verticalPadding

verticalPadding: number

Vertical padding of the balloon.

default

5

Methods

hide

  • hide(): void
  • Hides balloon.

    Returns void

setBounds

  • setBounds(left: number, top: number, right: number, bottom: number): void
  • Defines a square within which the balloon should appear. Bounds are set by chart class, you don't need to call this method yourself.

    Parameters

    • left: number
    • top: number
    • right: number
    • bottom: number

    Returns void

setPosition

  • setPosition(x: number, y: number): void
  • Sets coordinates the balloon should point to.

    Parameters

    • x: number
    • y: number

    Returns void

show

  • show(value: string): void
  • Specifies the text which should be displayed.

    Parameters

    • value: string

    Returns void

Generated using TypeDoc