ComponentConfig
Class
Base visualization configuration produced by the AI. Use the typed subclasses GridComponentConfig and ChartComponentConfig to access component-specific settings. Downcast via ComponentType.
Definition
Namespace:Telerik.Blazor.Components.DatAInsightsComposer
Assembly:Telerik.Blazor.DatAInsightsComposer.dll
Syntax:
C#
[JsonPolymorphic(TypeDiscriminatorPropertyName = "ComponentType")]
[JsonDerivedType(typeof(GridComponentConfig), "Grid")]
[JsonDerivedType(typeof(ChartComponentConfig), "Chart")]
[JsonDerivedType(typeof(LinearGaugeComponentConfig), "LinearGauge")]
[JsonDerivedType(typeof(RadialGaugeComponentConfig), "RadialGauge")]
[JsonDerivedType(typeof(ArcGaugeComponentConfig), "ArcGauge")]
[JsonDerivedType(typeof(CircularGaugeComponentConfig), "CircularGauge")]
public abstract class ComponentConfig
Inheritance: objectComponentConfig
Derived Classes:
Constructors
C#
protected ComponentConfig()
Properties
The component type to render.
C#
[JsonIgnore]
public abstract ComponentType ComponentType { get; }
Key of the dataset this config was generated from. Only populated by the combined
dataset+component selection pipeline (IDatAInsightsComposerAIService.GenerateComponentsAsync).
C#
[JsonIgnore]
public string? DatasetId { get; set; }
AI-generated description based on the prompt.
C#
public string? Description { get; set; }