StockChartTagHelper
Kendo UI StockChart TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-stockchart")]
[RestrictChildren("navigator", new string[] { "category-axis", "datasource", "series-defaults", "value-axis", "x-axis", "axis-defaults", "chart-area", "chart-legend", "panes", "pannable", "pdf", "plot-area", "series", "chart-title", "tooltip", "zoomable", "messages", "no-data" })]
public class StockChartTagHelper : ChartTagHelper, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>
Inheritance: objectTagHelperTagHelperBaseChartTagHelperStockChartTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-stockchart name="stockChart" date-field="Date">
<datasource>
<transport>
<read url="@Url.Action("_StockData", "Home")"/>
</transport>
<schema>
<model>
<fields>
<field name="Date" type="date"></field>
<field name="Close" type="number"></field>
<field name="Open" type="number"></field>
<field name="High" type="number"></field>
<field name="Low" type="number"></field>
<field name="Volume" type="number"></field>
</fields>
</model>
</schema>
</datasource>
<series>
<series-item type="ChartSeriesType.Candlestick" open-field="Open" high-field="High" low-field="Low" close-field="Close"></series-item>
</series>
</kendo-stockchart>
Child Tags
Constructors
Initializes a new instance of the StockChartTagHelper class.
public StockChartTagHelper(IKendoHtmlGenerator generator)
Properties
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 string DateField { get; set; }
The name of the JavaScript function that will handle the axisLabelClick event. Fires when an axis label is clicked.
public string OnAxisLabelClick { get; set; }
The name of the JavaScript function that will handle the dataBound event. Fires when the chart has received data from the data source and is about to render it.
public string OnDataBound { get; set; }
The name of the JavaScript function that will handle the drag event. Fires as long as the user is dragging the chart using the mouse or swipe gestures.
public string OnDrag { get; set; }
The name of the JavaScript function that will handle the dragEnd event. Fires when the user stops dragging the chart.
public string OnDragEnd { get; set; }
The name of the JavaScript function that will handle the dragStart event. Fires when the user has used the mouse or a swipe gesture to drag the chart.The drag operation can be aborted by calling e.preventDefault().
public string OnDragStart { get; set; }
The name of the JavaScript function that will handle the legendItemClick event. Fires when an legend item is clicked, before the selected series visibility is toggled. Can be cancelled.
public string OnLegendItemClick { get; set; }
The name of the JavaScript function that will handle the legendItemHover event. Fires when an legend item is hovered.
public string OnLegendItemHover { get; set; }
The name of the JavaScript function that will handle the legendItemLeave event. Fires when the cursor leaves a legend item.
public string OnLegendItemLeave { get; set; }
The name of the JavaScript function that will handle the noteClick event. Fired when the user clicks one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnNoteClick { get; set; }
The name of the JavaScript function that will handle the noteHover event. Fired when the user hovers one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnNoteHover { get; set; }
The name of the JavaScript function that will handle the noteLeave event. Fired when the cursor leaves a note.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnNoteLeave { get; set; }
The name of the JavaScript function that will handle the paneRender event. Fires when a pane is rendered because the chart is rendered, or the chart performs panning or zooming, or because the chart is exported with different options. The event can be used to render custom visuals in the panes.
public string OnPaneRender { get; set; }
The name of the JavaScript function that will handle the plotAreaClick event. Fires when plot area is clicked.
public string OnPlotAreaClick { get; set; }
The name of the JavaScript function that will handle the plotAreaHover event. Fired when the user hovers the plot area.
public string OnPlotAreaHover { get; set; }
The name of the JavaScript function that will handle the plotAreaLeave event. Fired when the cursor leaves the plotArea.
public string OnPlotAreaLeave { get; set; }
The name of the JavaScript function that will handle the render event. Fired when the chart is ready to render on screen.Can be used, for example, to remove loading indicators. Changes to options will be ignored.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnRender { get; set; }
The name of the JavaScript function that will handle the select event. Fired when the user modifies the selection.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnSelect { get; set; }
The name of the JavaScript function that will handle the selectEnd event. Fired when the user completes modifying the selection.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnSelectEnd { get; set; }
The name of the JavaScript function that will handle the selectStart event. Fired when the user starts modifying the axis selection.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnSelectStart { get; set; }
The name of the JavaScript function that will handle the seriesClick event. Fires when chart series are clicked.
public string OnSeriesClick { get; set; }
The name of the JavaScript function that will handle the seriesHover event. Fires when chart series are hovered.
public string OnSeriesHover { get; set; }
The name of the JavaScript function that will handle the seriesLeave event. Fired when the cursor leaves a chart series.
public string OnSeriesLeave { get; set; }
The name of the JavaScript function that will handle the seriesOver event. Fired when the cursor is over the chart series.
public string OnSeriesOver { get; set; }
The name of the JavaScript function that will handle the zoom event. Fires as long as the user is zooming the chart using the mousewheel.
public string OnZoom { get; set; }
The name of the JavaScript function that will handle the zoomEnd event. Fires when the user stops zooming the chart.
public string OnZoomEnd { get; set; }
The name of the JavaScript function that will handle the zoomStart event. Fires when the user has used the mousewheel to zoom the chart.The zoom operation can be aborted by calling e.preventDefault().
public string OnZoomStart { get; set; }
Specifies if the series visible option should be persisted when changing the dataSource data.
public bool? PersistSeriesVisibility { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: