arlas-web-components / Exports / DonutComponent

Class: DonutComponent

Implements

  • OnChanges

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DonutComponent(el, colorService, translate)

Parameters

Name Type
el ElementRef<any>
colorService ArlasColorService
translate TranslateService

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:127

Properties

colorsSaturationWeight

colorsSaturationWeight: number

input : Angular

description Knowing that saturation scale is [0, 1], colorsSaturationWeight is a factor (between 0 and 1) that tightens this scale to [(1-colorsSaturationWeight), 1]. Therefore colors saturation of donuts arcs will be within this tightened scale..

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:86


containerWidth

containerWidth: number

input : Angular

description Width of the svg containing the donut. If it's not set, the container width takes the donut's diameter.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:98


customizedCssClass

customizedCssClass: any

input : Angular

description Css class name to use to customize a specific powerbar's style.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:54


diameter

diameter: number

input : Angular

description Diameter of the donut. If it's not set, the donut take the Max(width,height) of the div containing the svg.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:92


donut

donut: AbstractDonut

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:125


donutData

donutData: TreeNode

input : Angular

description Data tree to plot in the donut.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:42


hoveredNodeTooltipEvent

hoveredNodeTooltipEvent: Subject<ARLASDonutTooltip>

output : Angular

description Emits the information about the hovered node and its parents.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:123


hoveredNodesEvent

hoveredNodesEvent: Subject<Map<string, string>>

output : Angular

description Emits the hovered node and the path to it's parents. The key of the map is the node's name and the value is its color on the donut

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:117


id

id: any

input : Angular

description id of the donut

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:72


keysToColors

keysToColors: [string, string][]

input : Angular

description List of [key, color] couples that associates a hex color to each key

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:78


multiselectable

multiselectable: boolean = true

input : Angular

description Whether the donut is multi-selectable.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:66


opacity

opacity: number = 0.4

input : Angular

description Sets the opacity of non-hovered or non-selected nodes.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:48


selectedArcsList

selectedArcsList: SimpleNode[][]

input : Angular

description List of selected nodes.

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:60


selectedNodesEvent

selectedNodesEvent: Subject<SimpleNode[][]>

output : Angular

description Emits the list of selected nodes and the paths to their ultimate parent

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:110


unit

unit: string = ''

input : Angular

description Unit that a node of the donut represents

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:104

Methods

ngOnChanges

ngOnChanges(changes): void

Parameters

Name Type
changes SimpleChanges

Returns

void

Implementation of

OnChanges.ngOnChanges

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:136


getDonutJsonSchema

Static getDonutJsonSchema(): Object

Returns

Object

Json schema of the donut component for configuration

Defined in

projects/arlas-components/src/lib/components/donut/donut.component.ts:160