Skip to content

arlas-web-contributors > "contributors/DonutContributor" > DonutContributor

Class: DonutContributor

deprecated:

Hierarchy

TreeContributor

↳ DonutContributor

Index

Constructors

Properties

Methods


Constructors

constructor

new DonutContributor(identifier: string, collaborativeSearcheService: CollaborativesearchService, configService: ConfigService, title: string): DonutContributor

Overrides TreeContributor.constructor

Defined in contributors/DonutContributor.ts:51

Parameters:

Name Type
identifier string
collaborativeSearcheService CollaborativesearchService
configService ConfigService
title string

Returns: DonutContributor


Properties

arcMinPourcentage

● arcMinPourcentage: any = (this.getConfigValue('arcMinPourcentage')) ? this.getConfigValue('arcMinPourcentage') : 0.01

Defined in contributors/DonutContributor.ts:47

The minimum ratio of the arc in its ring needed to be plot. Otherwise the arc is considered as OTHER


collaborativeSearcheService

● collaborativeSearcheService: CollaborativesearchService

Inherited from Contributor.collaborativeSearcheService

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:8


configService

● configService: ConfigService

Inherited from Contributor.configService

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:7


donutData

● donutData: TreeNode

Defined in contributors/DonutContributor.ts:43

Data retrieved from ARLAS-server response and to be returned for the donut component as an input


identifier

● identifier: string

Inherited from Contributor.identifier

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:6


nodeSizeMinPourcentage

● nodeSizeMinPourcentage: any = (this.getConfigValue('nodeSizeMinPourcentage')) ? this.getConfigValue('nodeSizeMinPourcentage') : 0.01

Inherited from TreeContributor.nodeSizeMinPourcentage

Defined in contributors/TreeContributor.ts:45

The minimum ratio of the node in its level needed to be plotted. Otherwise the node is considered as OTHER


selectedArcsList

● selectedArcsList: Array<Array<SimpleNode>> = new Array>()

Defined in contributors/DonutContributor.ts:51

List of selected nodes to be returned to the donut component as an input


selectedNodesPathsList

● selectedNodesPathsList: Array<Array<SimpleNode>> = new Array>()

Inherited from TreeContributor.selectedNodesPathsList

Defined in contributors/TreeContributor.ts:50

List of selected nodes to be returned to a component that accepts tree data as an input


title

● title: string

Overrides TreeContributor.title

Defined in contributors/DonutContributor.ts:39

Title given to the aggregation result


treeData

● treeData: TreeNode

Inherited from TreeContributor.treeData

Defined in contributors/TreeContributor.ts:41

Data retrieved from ARLAS-server response and to be returned for the donut/powerbars component as an input


Methods

computeData

computeData(aggregationResponse: AggregationResponse): TreeNode

Overrides TreeContributor.computeData

Defined in contributors/DonutContributor.ts:87

Parameters:

Name Type
aggregationResponse AggregationResponse

Returns: TreeNode


fetchData

fetchData(collaborationEvent: CollaborationEvent): Observable<any>

Overrides TreeContributor.fetchData

Defined in contributors/DonutContributor.ts:83

Parameters:

Name Type
collaborationEvent CollaborationEvent

Returns: Observable<any>


getConfigValue

getConfigValue(key: string): any

Inherited from Contributor.getConfigValue

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:24

Parameters:

Name Type Description
key string a `key` defined in configuration.

Returns: any value of the key in configuration.


getFilterDisplayName

getFilterDisplayName(): string

Overrides TreeContributor.getFilterDisplayName

Defined in contributors/DonutContributor.ts:79

Returns: string


getName

getName(): string

Inherited from Contributor.getName

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:28

Returns: string name of contributor set in configuration.


getPackageName

getPackageName(): string

Overrides TreeContributor.getPackageName

Defined in contributors/DonutContributor.ts:75

Returns: string Package name for the configuration service.


selectedArcsListChanged

selectedArcsListChanged(selectedArcsList: Array<Array<SimpleNode>>): void

Defined in contributors/DonutContributor.ts:102

Parameters:

Name Type
selectedArcsList Array<Array<SimpleNode>>

Returns: void


selectedNodesListChanged

selectedNodesListChanged(selectedNodesPathsList: Array<Array<SimpleNode>>): void

Inherited from TreeContributor.selectedNodesListChanged

Defined in contributors/TreeContributor.ts:195

Parameters:

Name Type
selectedNodesPathsList Array<Array<SimpleNode>>

Returns: void


setData

setData(data: TreeNode): TreeNode

Overrides TreeContributor.setData

Defined in contributors/DonutContributor.ts:91

Parameters:

Name Type
data TreeNode

Returns: TreeNode


setSelection

setSelection(data: TreeNode, collaboration: Collaboration): any

Overrides TreeContributor.setSelection

Defined in contributors/DonutContributor.ts:96

Parameters:

Name Type
data TreeNode
collaboration Collaboration

Returns: any


updateTreeDataSearch

updateTreeDataSearch(search: any): void

Inherited from TreeContributor.updateTreeDataSearch

Defined in contributors/TreeContributor.ts:235

description: apply the search term to filter the tree data

Parameters:

Name Type Description
search any the term used to filter tree data

Returns: void


<Static> getJsonSchema

getJsonSchema(): Object

Overrides TreeContributor.getJsonSchema

Defined in contributors/DonutContributor.ts:68

Returns: Object Json schema for configuration.