ChartConfig
Chart-specific visualization configuration.
Canonical JSON Schema:
src/common/models/chart.schema.json. When adding a new property, update the schema file first, then add the matching C# property here.
Definition
Namespace:Telerik.Blazor.Components.DatAInsightsComposer
Assembly:Telerik.Blazor.DatAInsightsComposer.dll
Syntax:
public class ChartConfig
Inheritance: objectChartConfig
Constructors
public ChartConfig()
Properties
Category axis configurations (title, min, max, type, and name).
public List<ChartCategoryAxisConfig> CategoryAxes { get; set; }
The data field used for category axis values.
public string CategoryField { get; set; }
Optional data filter/sort to apply before rendering the chart series.
public DataSourceConfig? DataSource { get; set; }
Component height as a CSS size (e.g. "400px", "50%"). Set only if the user explicitly asks for a height; otherwise leave null.
public string? Height { get; set; }
The chart legend configuration.
public ChartLegendConfig? Legend { get; set; }
Enables chart panning (drag to pan). null means not requested (treated as false).
public bool? Pannable { get; set; }
Sets the preferred rendering engine. When not set the chart chooses automatically.
public ChartRenderAs? RenderAs { get; set; }
Series to render in the chart.
public List<ChartSeriesConfig> Series { get; set; }
The chart subtitle configuration (displayed below the title).
public ChartSubtitleConfig? Subtitle { get; set; }
The chart title configuration.
public ChartTitleConfig? Title { get; set; }
The chart tooltip configuration.
public ChartTooltipConfig? Tooltip { get; set; }
If set to false the chart will not play animations when displaying the series.
When null (default) the chart uses its built-in default (animations enabled).
public bool? Transitions { get; set; }
Value axis configurations (title, min, max, major unit, and name).
public List<ChartValueAxisConfig> ValueAxes { get; set; }
Component width as a CSS size (e.g. "600px", "50%"). Set only if the user explicitly asks for a width; otherwise leave null.
public string? Width { get; set; }
Numeric X-axis configurations for scatter and bubble charts.
public List<ChartXAxisConfig> XAxes { get; set; }
Numeric Y-axis configurations for scatter and bubble charts.
public List<ChartYAxisConfig> YAxes { get; set; }