Percent

Type module

Sources

Items from Percent can be imported/included and used via following ways.

/**
 * --------------------------------------------------------
 * Import via: Percent.ts
 * Access items like: $percent.myVariable
 *                    $percent.myFunction()
 * --------------------------------------------------------
 */
import * as $percent from "@amcharts/amcharts5/Percent";

Variables

p50
#

Type Percent

Default percent(50)

A shortcut function to am5.percent(50).

p100
#

Type Percent

Default percent(100)

A shortcut function to am5.percent(100).

p0
#

Type Percent

Default percent(0)

A shortcut function to am5.percent(0).

Functions

percent(

value: number

)

#

Returns Percent

Converts numeric percent value to a proper Percent object.

pieSeries.set("radius", am5.percent(80));
pieSeries.set("radius", am5.percent(80));