API Reference
ChartJsSankeyDatasetOptions
Typed configuration for Sankey datasets.
Inheritance
- Object
- ChartJsSankeyDatasetOptions
Constructors
public ChartJsSankeyDatasetOptions() #Methods
public ChartJsSankeyDatasetOptions AddLink(String from, String to, Double flow, String color = null) #ChartJsSankeyDatasetOptionsAdds a flow link.
Parameters
- from System.String
- to System.String
- flow System.Double
- color System.String = null
public ChartJsSankeyDatasetOptions SetLabel(String node, String label) #ChartJsSankeyDatasetOptionsSets the label displayed for a node.
Parameters
- node System.String
- label System.String
public ChartJsSankeyDatasetOptions SetNodeColor(String node, String color) #ChartJsSankeyDatasetOptionsMaps a node to a specific color that is used by the built-in color functions.
Parameters
- node System.String
- color System.String
public ChartJsSankeyDatasetOptions SetPriority(String node, Double priority) #ChartJsSankeyDatasetOptionsOverrides the rendering priority for a node (lower values render higher).
Parameters
- node System.String
- priority System.Double
public ChartJsSankeyDatasetOptions UseCustomColorFrom(ChartJsFunction function) #ChartJsSankeyDatasetOptionsUses a raw JavaScript function for the source color.
Parameters
- jsFunction System.String
UseCustomColorFrom(HtmlForgeX.ChartJsFunction function) #Uses a raw JavaScript function for the source color.
Parameters
- function HtmlForgeX.ChartJsFunction
public ChartJsSankeyDatasetOptions UseCustomColorTo(ChartJsFunction function) #ChartJsSankeyDatasetOptionsUses a raw JavaScript function for the target color.
Parameters
- jsFunction System.String
UseCustomColorTo(HtmlForgeX.ChartJsFunction function) #Uses a raw JavaScript function for the target color.
Parameters
- function HtmlForgeX.ChartJsFunction
Inherited Methods
Properties
public List<ChartJsSankeyLink> Links { get; } #Collection of links describing the flow.
public Dictionary<String, Double> Priorities { get; } #Optional per-node priority (smaller = higher column).
public Dictionary<String, String> Labels { get; } #Optional friendly labels per node.
public Dictionary<String, String> NodeColors { get; set; } #Optional mapping of node name to color.
public String DefaultNodeColor { get; set; } #Fallback color used when a node is missing from NodeColors.
public ChartJsFunction ColorFrom { get; set; } #Custom JavaScript function for determining link color at the source node.
public ChartJsFunction ColorTo { get; set; } #Custom JavaScript function for determining link color at the target node.
public Nullable<Int32> BorderWidth { get; set; } #Border width applied to the links.
public String BorderColor { get; set; } #Border color applied to the links.