StockChartBuilder<T>
Defines the fluent interface for configuring the Chart<T> component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class StockChartBuilder<T> : WidgetBuilderBase<StockChart<T>, StockChartBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<StockChart<T>, StockChartBuilder<T>>StockChartBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChartBuilder<T> class.
public StockChartBuilder(StockChart<T> component)
The component.
Methods
Enables or disables automatic binding.
public StockChartBuilder<T> AutoBind(bool autoBind)
Gets or sets a value indicating if the chart should be data bound during initialization. The default value is true.
Returns:Defines the options for all chart axes of the specified type.
public StockChartBuilder<T> AxisDefaults(Action<ChartAxisDefaultsBuilder<T>> configurator)
The configurator.
Returns:Configures the category axis
public StockChartBuilder<T> CategoryAxis(Action<ChartCategoryAxisBuilder<T>> configurator)
The configurator
Returns:Sets the Chart area.
public StockChartBuilder<T> ChartArea(Action<ChartAreaBuilder> configurator)
The Chart area.
Returns:Data Source configuration
public StockChartBuilder<T> DataSource(Action<ReadOnlyAjaxDataSourceBuilder<T>> configurator)
Use the configurator to set different data binding options.
Returns:Sets the field used by all date axes (including the navigator).
public StockChartBuilder<T> DateField(string dateField)
The date field.
Returns:Configures the client-side events.
public StockChartBuilder<T> Events(Action<ChartEventBuilder> configurator)
The client events configuration action.
Returns:Configures the legend.
public StockChartBuilder<T> Legend(Action<ChartLegendBuilder> configurator)
The configuration action.
Returns:Sets the legend visibility.
public StockChartBuilder<T> Legend(bool visible)
A value indicating whether to show the legend.
Returns:Configures the stock chart navigator.
public StockChartBuilder<T> Navigator(Action<ChartNavigatorBuilder<T>> configurator)
The navigator configuration action.
Returns:Defines the chart panes.
public StockChartBuilder<T> Panes(Action<ChartPanesFactory> configurator)
The add action.
Returns:Configures the PDF export settings.
public StockChartBuilder<T> Pdf(Action<PDFSettingsBuilder> configurator)
Use the configurator to set the pdf export options.
Returns:Specifies if the series visible option should be persisted when changing the dataSource data.
public StockChartBuilder<T> PersistSeriesVisibility(bool value)
A value indicating if the visible option should be persisted.
Returns:Sets the Plot area.
public StockChartBuilder<T> PlotArea(Action<PlotAreaBuilder> configurator)
The Plot area.
Returns:Sets the preferred rendering engine. If it is not supported by the browser, the Chart will switch to the first available mode.
public StockChartBuilder<T> RenderAs(RenderingMode renderAs)
The preferred rendering engine.
Returns:Defines the chart series.
public StockChartBuilder<T> Series(Action<ChartSeriesFactory<T>> configurator)
The add action.
Returns:Sets the series colors.
public StockChartBuilder<T> SeriesColors(IEnumerable<string> colors)
A list of the series colors.
Returns:Sets the series colors.
public StockChartBuilder<T> SeriesColors(params string[] colors)
The series colors.
Returns:Defines the options for all chart series of the specified type.
public StockChartBuilder<T> SeriesDefaults(Action<ChartSeriesDefaultsBuilder<T>> configurator)
The configurator.
Returns:Sets the theme of the chart.
Defines the title of the chart.
public StockChartBuilder<T> Title(Action<ChartTitleBuilder> configurator)
The configuration action.
Returns:Sets the title of the chart.
Use it to configure the data point tooltip.
public StockChartBuilder<T> Tooltip(Action<ChartTooltipBuilder> configurator)
Use the configurator to set data tooltip options.
Returns:Sets the data point tooltip visibility.
public StockChartBuilder<T> Tooltip(bool visible)
A value indicating if the data point tooltip should be displayed. The tooltip is not visible by default.
Returns:Enables or disabled animated transitions on initial load and refresh.
public StockChartBuilder<T> Transitions(bool transitions)
A value indicating if transition animations should be played.
Returns:Defines value axis options
public StockChartBuilder<T> ValueAxis(Action<ChartValueAxisFactory<T>> configurator)
The configurator
Returns:Defines X-axis options for scatter charts
public StockChartBuilder<T> XAxis(Action<ChartValueAxisFactory<T>> configurator)
The configurator
Returns:Configures Y-axis options for scatter charts.
public StockChartBuilder<T> YAxis(Action<ChartValueAxisFactory<T>> configurator)
The configurator
Returns: