@progress/kendo-angular-charts
Version:
Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.
31 lines (30 loc) • 844 B
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2024 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* The context that is passed to the Sankey diagram Node tooltip template.
*/
export class SankeyNodeTooltipTemplateContext {
/**
* The node color.
*/
color;
/**
* The node label data.
*/
label;
/**
* The node value.
*/
value;
/**
* @hidden
*/
constructor(e) {
const dataItem = e.dataItem;
this.label = dataItem.label;
this.color = dataItem.color;
this.value = e.nodeValue;
}
}