Skip to content

Interface: SharesInsight ​

Experimental

Parts of a whole: pie slices, funnel stages, category bars, hierarchy branches, sankey flows.

Properties ​

PropertyModifierTypeDescription
kindreadonly"shares"Experimental
lengthreadonlynumberExperimental
partreadonly"slice" | "bar" | "stage" | "branch" | "flow"Experimental What a part is: 'slice', 'bar', 'stage', 'branch' or 'flow'.
total?readonlynumberExperimental The whole, when it isn't the sum of values (sankey: flow from sources).
valuesreadonlyArrayLike<number>Experimental

Methods ​

formatValue() ​

ts
formatValue(v): string;

Experimental

Parameters ​

ParameterType
vnumber

Returns ​

string


label() ​

ts
label(i): string;

Experimental

Label of part i (plain text).

Parameters ​

ParameterType
inumber

Returns ​

string


skip()? ​

ts
optional skip(i): boolean;

Experimental

Parts that are hidden (legend-toggled slices) or not drawn, if any.

Parameters ​

ParameterType
inumber

Returns ​

boolean

Released under the MIT License.