StockChartBuilder<T>
Defines the fluent API for configuring the Kendo UI StockChart
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class StockChartBuilder<T> : WidgetBuilderBase<StockChart<T>, StockChartBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<StockChart<T>, StockChartBuilder<T>>StockChartBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the StockChartBuilder<T> class.
Methods
If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
public StockChartBuilder<T> AutoBind(bool value)
The value for AutoBind
Returns:Returns the current StockChartBuilder<T> instance.
The default options for all chart axes. Accepts the options supported by categoryAxis, valueAxis, xAxis and yAxis.
public StockChartBuilder<T> AxisDefaults(Action<ChartAxisDefaultsSettingsBuilder<T>> configurator)
The configurator for the axisdefaults setting.
Returns:Returns the current StockChartBuilder<T> instance.
Configures the category axis
public StockChartBuilder<T> CategoryAxis(Action<ChartCategoryAxisBuilder<T>> configurator)
The configurator
Returns:Returns the current StockChartBuilder<T> instance.
The chart area configuration options. Represents the entire visible area of the chart.
public StockChartBuilder<T> ChartArea(Action<ChartChartAreaSettingsBuilder<T>> configurator)
The configurator for the chartarea setting.
Returns:Returns the current StockChartBuilder<T> instance.
Data Source configuration
public StockChartBuilder<T> DataSource(Action<ReadOnlyAjaxDataSourceBuilder<T>> configurator)
Use the configurator to set different data binding options.
Returns:Returns the current StockChartBuilder<T> instance.
The field containing the point date. It is used as a default categoryField for all series.The data item field value must be either: Date instance. String parsable by new Date([field value]). String in ASP.NET JSON format, i.e. "/Date(1320825600000-0800)/".
public StockChartBuilder<T> DateField(string value)
The value for DateField
Returns:Returns the current StockChartBuilder<T> instance.
Configures the client-side events.
public StockChartBuilder<T> Events(Action<ChartEventBuilder> configurator)
The client events action.
Returns:Returns the current StockChartBuilder<T> instance.
Configures the client-side events.
public StockChartBuilder<T> Events(Action<StockChartEventBuilder> configurator)
The client events action.
Returns:Returns the current StockChartBuilder<T> instance.
The chart legend configuration options.
public StockChartBuilder<T> Legend(Action<ChartLegendSettingsBuilder<T>> configurator)
The configurator for the legend setting.
Returns:Returns the current StockChartBuilder<T> instance.
Sets the legend visibility.
public StockChartBuilder<T> Legend(bool visible)
A value indicating whether to show the legend.
Returns:Returns the current StockChartBuilder<T> instance.
Allows localization of the strings that are used in the widget.
public StockChartBuilder<T> Messages(Action<ChartMessagesSettingsBuilder<T>> configurator)
The configurator for the messages setting.
Returns:Returns the current StockChartBuilder<T> instance.
The data navigator configuration options.
public StockChartBuilder<T> Navigator(Action<StockChartNavigatorSettingsBuilder<T>> configurator)
The StockChartNavigatorSettingsBuilder<T> for the navigator setting.
Returns:Returns the current instance of StockChartBuilder<T> .
When no series data is available, the StockChart will display an overlay element that contains a message with the text "No data available". The overlay will be automatically cleared if the series receive data.
public StockChartBuilder<T> NoData(Action<ChartNoDataSettingsBuilder<T>> configurator)
The configurator for the nodata setting.
Returns:Returns the current StockChartBuilder<T> instance.
When no series data is available, the StockChart will display an overlay element that contains a message with the text "No data available". To disable the "No Data" overlay, set this option to false.
public StockChartBuilder<T> NoData(bool enabled)
Enables or disables the nodata option.
Returns:Returns the current StockChartBuilder<T> instance.
The chart panes configuration.Panes are used to split the chart in two or more parts. The panes are ordered from top to bottom.Each axis can be associated with a pane by setting its pane option to the name of the desired pane. Axis that don't have specified pane are placed in the top (default) pane.Series are moved to the desired pane by associating them with an axis.
public StockChartBuilder<T> Panes(Action<ChartPaneFactory<T>> configurator)
The configurator for the panes setting.
Returns:Returns the current StockChartBuilder<T> instance.
Specifies if the chart can be panned.
public StockChartBuilder<T> Pannable()
Returns the current StockChartBuilder<T> instance.
Specifies if the chart can be panned.
public StockChartBuilder<T> Pannable(Action<ChartPannableSettingsBuilder<T>> configurator)
The configurator for the pannable setting.
Returns:Returns the current StockChartBuilder<T> instance.
Specifies if the chart can be panned.
public StockChartBuilder<T> Pannable(bool enabled)
Enables or disables the pannable option.
Returns:Returns the current StockChartBuilder<T> instance.
Configures the export settings for the saveAsPDF method.
public StockChartBuilder<T> Pdf(Action<ChartPdfSettingsBuilder<T>> configurator)
The configurator for the pdf setting.
Returns:Returns the current StockChartBuilder<T> instance.
Specifies if the series visible option should be persisted when changing the dataSource data.
public StockChartBuilder<T> PersistSeriesVisibility(bool value)
The value for PersistSeriesVisibility
Returns:Returns the current StockChartBuilder<T> instance.
The plot area configuration options. The plot area is the area which displays the series.
public StockChartBuilder<T> PlotArea(Action<ChartPlotAreaSettingsBuilder<T>> configurator)
The configurator for the plotarea setting.
Returns:Returns the current StockChartBuilder<T> instance.
Specifies the preferred widget rendering mode.
public StockChartBuilder<T> RenderAs(RenderingMode value)
The value for RenderAs
Returns:Returns the current StockChartBuilder<T> instance.
The configuration of the chart series.The series type is determined by the value of the type field. If a type value is missing, the type is assumed to be the one specified in seriesDefaults.
public StockChartBuilder<T> Series(Action<ChartSeriesFactory<T>> configurator)
The configurator for the series setting.
Returns:Returns the current StockChartBuilder<T> instance.
The default colors for the chart's series. When all colors are used, new colors are pulled from the start again.
public StockChartBuilder<T> SeriesColors(params string[] value)
The value for SeriesColors
Returns:Returns the current StockChartBuilder<T> instance.
Defines the options for all chart series of the specified type.
public StockChartBuilder<T> SeriesDefaults(Action<ChartSeriesDefaultsSettingsBuilder<T>> configurator)
The configurator.
Returns:Returns the current StockChartBuilder<T> instance.
The chart theme.The supported values are:
public StockChartBuilder<T> Theme(string value)
The value for Theme
Returns:Returns the current StockChartBuilder<T> instance.
The chart title configuration options or text.
public StockChartBuilder<T> Title(Action<ChartTitleSettingsBuilder<T>> configurator)
The configurator for the title setting.
Returns:Returns the current StockChartBuilder<T> instance.
The chart title.
public StockChartBuilder<T> Title(string title)
The value of the Chart title
Returns:Returns the current StockChartBuilder<T> instance.
The chart series tooltip configuration options.
public StockChartBuilder<T> Tooltip(Action<ChartTooltipSettingsBuilder<T>> configurator)
The configurator for the tooltip setting.
Returns:Returns the current StockChartBuilder<T> instance.
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:Returns the current StockChartBuilder<T> instance.
If set to true the chart will play animations when displaying the series. By default animations are enabled.
public StockChartBuilder<T> Transitions(bool value)
The value for Transitions
Returns:Returns the current StockChartBuilder<T> instance.
Configures the default value axis or adds a new one
public StockChartBuilder<T> ValueAxis(Action<ChartValueAxisBuilder<T>> configurator)
The configurator for the axis
Returns:Returns the current StockChartBuilder<T> instance.
Configures the default X axis or adds a new one
public StockChartBuilder<T> XAxis(Action<ChartXAxisBuilder<T>> configurator)
The configurator for the axis
Returns:Returns the current StockChartBuilder<T> instance.
Specifies if the chart can be zoomed.
public StockChartBuilder<T> Zoomable()
Returns the current StockChartBuilder<T> instance.
Specifies if the chart can be zoomed.
public StockChartBuilder<T> Zoomable(Action<ChartZoomableSettingsBuilder<T>> configurator)
The configurator for the zoomable setting.
Returns:Returns the current StockChartBuilder<T> instance.
Specifies if the chart can be zoomed.
public StockChartBuilder<T> Zoomable(bool enabled)
Enables or disables the zoomable option.
Returns:Returns the current StockChartBuilder<T> instance.