<dy-sankey-chart>
例子
Loading...
<dy-sankey-chart
style=${"width: 100%;"}
.aspectRatio=${3}
.data=${ { "nodes": [ {"id":"a","label":"节点 A"}, {"id":"b","label":"节点 B"}, {"id":"c","label":"节点 C"} ], "links": [ {"source":"a","target":"b","value":5}, {"source":"b","target":"c","value":3}, {"source":"a","target":"c","value":2} ] } }></dy-sankey-chart>
API
DuoyunSankeyChartElement
Extends DuoyunChartBaseElement
DuoyunSankeyChartElement Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
data |
Yes | SankeyData |
nodeWidth |
Yes | number |
nodePadding |
Yes | number |
xAxi |
null |
|
yAxi |
null |
DuoyunChartBaseElement
Shadow DOM; Extends DuoyunResizeBaseElement
DuoyunChartBaseElement Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
aspectRatio |
Yes | number |
filters |
Yes | string[] |
colors |
Yes | ``#${string}[] |
xAxi |
Yes | Axi | null |
yAxi |
Yes | Axi | null |
pAxi |
Yes | Axi | null |
yMin |
Yes | number |
yMax |
Yes | number |
xStep |
Yes | number |
yStep |
Yes | number |
pStep |
Yes | number |
tooltip |
Yes | Tooltip |
markLines |
Yes | MarkLine[] |
indexclick |
Emitter<number> |
|
genGradientId |
(index: number) => string |
DuoyunChartBaseElement Other
| Type | Value |
|---|---|
| Event | indexclick |
| Part | chart |
| CSS State | loading, no-data |
TapResizeBaseElement
Extends GemElement
TapResizeBaseElement Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
resize |
Emitter<ResizeDetail> |
|
resizeThrottle |
Yes | boolean |
borderBoxSize |
{ blockSize: number; inlineSize: number; } |
|
contentRect |
{ x: number; y: number; height: number; width: number; } |
TapResizeBaseElement Other
| Type | Value |
|---|---|
| Event | resize |
