arlas-d3 / Exports / DonutParams

Class: DonutParams

Table of contents

Constructors

Properties

Constructors

constructor

new DonutParams()

Properties

colorsSaturationWeight

colorsSaturationWeight: number

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

src/donuts/DonutParams.ts:107


containerWidth

containerWidth: number

Defined in

src/donuts/DonutParams.ts:117


customizedCssClass

customizedCssClass: any

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

Defined in

src/donuts/DonutParams.ts:45


diameter

diameter: number

Dimensions

Defined in

src/donuts/DonutParams.ts:116


donutContainer

donutContainer: HTMLElement

description The div element that wraps the donut component.

Defined in

src/donuts/DonutParams.ts:97


donutData

donutData: TreeNode

description Data displayed on the donut. Each node's size must be specified

Defined in

src/donuts/DonutParams.ts:35


donutNodeColorizer

donutNodeColorizer: ColorGenerator

description an object that implements ColorGenerator interface.

Defined in

src/donuts/DonutParams.ts:111


donutNodes

donutNodes: DonutNode[]

description D3 nodes diplayed on the donut.

Defined in

src/donuts/DonutParams.ts:89


hoveredNodeTooltipEvent

hoveredNodeTooltipEvent: Subject<DonutTooltip>

deprecated

description Emits the tooltip of the hovered node.

Defined in

src/donuts/DonutParams.ts:74


hoveredNodesEvent

hoveredNodesEvent: Subject<Map<string, string>>

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

src/donuts/DonutParams.ts:68


id

id: any

description Id of the donut.

Defined in

src/donuts/DonutParams.ts:30


keysToColors

keysToColors: [string, string][]

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

Defined in

src/donuts/DonutParams.ts:101


multiselectable

multiselectable: boolean = true

description Whether the donut is multi-selectable.

Defined in

src/donuts/DonutParams.ts:56


numberFormatChar

numberFormatChar: string = ''

Defined in

src/donuts/DonutParams.ts:113


opacity

opacity: number = 0.4

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

Defined in

src/donuts/DonutParams.ts:40


selectedArcsList

selectedArcsList: { fieldName: string ; fieldValue: string }[][]

description List of selected nodes.

Defined in

src/donuts/DonutParams.ts:50


selectedNodesEvent

selectedNodesEvent: Subject<{ fieldName: string ; fieldValue: string }[][]>

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

Defined in

src/donuts/DonutParams.ts:61


svgElement

svgElement: SVGElement

description The SVG element that's the donut is built on.

Defined in

src/donuts/DonutParams.ts:93


tooltip

tooltip: ARLASDonutTooltip = {}

description Tooltip displayed when a node is hovered.

Defined in

src/donuts/DonutParams.ts:84


tooltipEvent

tooltipEvent: Subject<ARLASDonutTooltip>

description Emits the tooltip of the hovered node.

Defined in

src/donuts/DonutParams.ts:79