/// <summary> /// Initializes a new instance of the <see cref="ChartLineBase" /> class. /// </summary> public ChartLineBase(int width, string color, ChartDashType dashType, bool visible) { Width = width; Color = color; Visible = visible; DashType = dashType; }
/// <summary> /// Initializes a new instance of the <see cref="ChartLine" /> class. /// </summary> public ChartLine(int width, string color, ChartDashType dashType, bool visible) { Width = width; Color = color; Visible = visible; DashType = dashType; }
/// <summary> /// Configures the area chart line. /// </summary> /// <param name="width">The line width.</param> /// <param name="color">The line color.</param> /// <param name="dashType">The line dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series /// .Area(s => s.Sales) /// .Line(2, "red", ChartDashType.Dot) /// ) /// .Render(); /// %> /// </code> /// </example> public ChartAreaSeriesBuilder <T> Line(int width, string color, ChartDashType dashType) { Series.Line.Width = width; Series.Line.Color = color; Series.Line.DashType = dashType; return(this); }
/// <summary> /// Configures the error bars lines. /// </summary> /// <param name="width">The line width.</param> /// <param name="color">The line color.</param> /// <param name="dashType">The line dash type.</param> /// <example> /// <code lang="Razor"> /// @(Html.Kendo().Chart(Model) /// .Name("chart") /// .Series(series => series /// .Bar(s => s.Sales) /// .ErrorBars(e => e.Line(2, "red", ChartDashType.Dot)) /// ) /// ) /// </code> /// <code lang="ASPX"> /// <%= Html.Kendo().Chart(Model) /// .Name("chart") /// .Series(series => series /// .Bar(s => s.Sales) /// .ErrorBars(e => e.Line(2, "red", ChartDashType.Dot)) /// ) /// %> /// </code> /// </example> public TBuilder Line(int width, string color, ChartDashType dashType) { errorBars.Line.Width = width; errorBars.Line.Color = color; errorBars.Line.DashType = dashType; return(this as TBuilder); }
/// <summary> /// Initializes a new instance of the <see cref="ChartLineBase" /> class. /// </summary> public ChartLineBase(int width, string color, ChartDashType dashType, int skip, int step, bool visible) { Width = width; Color = color; Visible = visible; DashType = dashType; Skip = skip; Step = step; }
private void Initialize() { Stacked = false; Width = ChartDefaults.LineSeries.Width; Labels = new ChartPointLabels(); Markers = new ChartMarkers(); MissingValues = ChartDefaults.LineSeries.MissingValues; DashType = ChartDefaults.LineSeries.DashType; }
/// <summary> /// Initializes a new instance of the <see cref="ChartLineBase" /> class. /// </summary> public ChartLineBase(int width, string color, ChartDashType dashType, int skip, int step, bool visible) { Width = width; Color = color; Visible = visible; DashType = dashType; Skip = skip; Step = step; }
/// <summary> /// Sets color and width of the lines and enables them. /// </summary> /// <param name="color">The axis line width</param> /// <param name="width">The axis line color (CSS syntax)</param> /// <param name="dashType">The axis line dashType.</param> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Chart() /// .Name("Chart") /// .CategoryAxis(axis => axis /// .Categories(s => s.DateString) /// .Line(2, "#f00", ChartDashType.Dot) /// ) /// %> /// </code> /// </example> public TAxisBuilder Line(int width, string color, ChartDashType dashType) { Axis.Line.Width = width; Axis.Line.Color = color; Axis.Line.DashType = dashType; Axis.Line.Visible = true; return(this as TAxisBuilder); }
/// <summary> /// Sets color and width of the minor grid lines and enables them. /// </summary> /// <param name="color">The minor gridlines width</param> /// <param name="width">The minor gridlines color (CSS syntax)</param> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Chart() /// .Name("Chart") /// .CategoryAxis(axis => axis /// .Categories(s => s.DateString) /// .MinorGridLines(2, "red", ChartDashType.Dot) /// ) /// %> /// </code> /// </example> public TAxisBuilder MinorGridLines(int width, string color, ChartDashType dashType) { Axis.MinorGridLines.Width = width; Axis.MinorGridLines.Color = color; Axis.MinorGridLines.DashType = dashType; Axis.MinorGridLines.Visible = true; return(this as TAxisBuilder); }
/// <summary> /// Sets the line dashType. /// </summary> /// <param name="dashType">The line dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .CategoryAxis(axis => axis.MajorGridLines(lines => lines.DashType(ChartDashType.Dot))) /// .Render(); /// %> /// </code> /// </example> public virtual ChartLineBuilderBase DashType(ChartDashType dashType) { line.DashType = dashType; return(this); }
/// <summary> /// Initializes a new instance of the <see cref="ChartSpacing" /> class. /// </summary> public ChartElementBorder(int width, string color, ChartDashType dashType) { Width = width; Color = color; DashType = dashType; }
public ChartNumericAxisBuilder Line(int width, string color, ChartDashType dashType) { LegacyBuilder.Line(width, color, dashType); return(LegacyBuilder); }
/// <summary> /// Sets the ticks dashType /// </summary> /// <param name="dashType">The ticks dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().LinearGauge() /// .Name("linearGauge") /// .Scale(scale => scale.MajorTicks(ticks => ticks.DashType(ChartDashType.Dot))) /// .Render(); /// %> /// </code> /// </example> public GaugeScaleTicksBuilder DashType(ChartDashType dashType) { ticks.DashType = dashType; return this; }
/// <summary> /// Sets the pie segments border /// </summary> /// <param name="width">The pie segments border width.</param> /// <param name="color">The pie segments border color (CSS syntax).</param> /// <param name="dashType">The pie segments border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series.Pie(s => s.Sales, s => s.DateString).Border(1, "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartPieSeriesBuilder <T> Border(int width, string color, ChartDashType dashType) { Series.Border = new ChartElementBorder(width, color, dashType); return(this); }
/// <summary> /// Sets the track border. /// </summary> /// <param name="width">The pointer border width.</param> /// <param name="color">The pointer border color.</param> /// <param name="dashType">The pointer dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().LinearGauge() /// .Name("linearGauge") /// .Pointer(pointer => pointer /// .Track(track => track.Border(1, "#000", ChartDashType.Dot)) /// ) /// .Render(); /// %> /// </code> /// </example> public GaugeLinearTrackBuilder Border(int width, string color, ChartDashType dashType) { track.Border = new ChartElementBorder(width, color, dashType); return this; }
/// <summary> /// Sets the labels border /// </summary> /// <param name="width">The labels border width.</param> /// <param name="color">The labels border color (CSS syntax).</param> /// <param name="dashType">The labels border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series /// .Bar(s => s.Sales) /// .Labels(labels => labels /// .Border(1, "Red", ChartDashType.Dot) /// .Visible(true); /// ); /// ) /// .Render(); /// %> /// </code> /// </example> public TBuilder Border(int width, string color, ChartDashType dashType) { labels.Border = new ChartElementBorder(width, color, dashType); return(this as TBuilder); }
/// <summary> /// Initializes a new instance of the <see cref="ChartLine" /> class. /// </summary> public ChartLine(int width, string color, ChartDashType dashType, bool visible) : base(width, color, dashType, visible) { }
/// <summary> /// Sets the bars border /// </summary> /// <param name="width">The bars border width.</param> /// <param name="color">The bars border color (CSS syntax).</param> /// <param name="dashType">The bars border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series.Bar(s => s.Sales).Border("1", "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public TSeriesBuilder Border(int width, string color, ChartDashType dashType) { Series.Border = new ChartElementBorder(width, color, dashType); return((TSeriesBuilder)this); }
/// <summary> /// Initializes a new instance of the <see cref="ChartElementBorder" /> class. /// </summary> public ChartElementBorder(int? width, string color, ChartDashType? dashType) { Width = width; Color = color; DashType = dashType; }
/// <summary> /// Initializes a new instance of the <see cref="ChartPolarAreaLine" /> class. /// </summary> public ChartPolarAreaLine(int width, string color, ChartDashType dashType, bool visible, ChartPolarAreaStyle style) : base(width, color, dashType, visible) { this.Style = style; }
/// <summary> /// Initializes a new instance of the <see cref="ChartPolarAreaLine" /> class. /// </summary> public ChartPolarAreaLine(int width, string color, ChartDashType dashType, bool visible) : base(width, color, dashType, visible) { }
/// <summary> /// Sets the line chart line dash type. /// </summary> /// <param name="dashType">The line dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series.Line(s => s.Sales).DashType(ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public TSeriesBuilder DashType(ChartDashType dashType) { Series.DashType = dashType; return((TSeriesBuilder)this); }
/// <summary> /// Sets the track border. /// </summary> /// <param name="width">The pointer border width.</param> /// <param name="color">The pointer border color.</param> /// <param name="dashType">The pointer dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().LinearGauge() /// .Name("linearGauge") /// .Pointer(pointer => pointer /// .Track(track => track.Border(1, "#000", ChartDashType.Dot)) /// ) /// .Render(); /// %> /// </code> /// </example> public GaugeLinearTrackBuilder Border(int width, string color, ChartDashType dashType) { track.Border = new ChartElementBorder(width, color, dashType); return(this); }
/// <summary> /// Sets the border dashType. /// </summary> /// <param name="dashType">The border dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .ChartArea(chartArea => chartArea.Border(border => border.DashType(ChartDashType.Dot))) /// .Render(); /// %> /// </code> /// </example> public ChartBorderBuilder DashType(ChartDashType dashType) { border.DashType = dashType; return this; }
/// <summary> /// Sets the target border /// </summary> /// <param name="width">The target border width.</param> /// <param name="color">The target border color (CSS syntax).</param> /// <param name="dashType">The target border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series /// .Bullet(s => s.Current, s => s.Target) /// .Target(target => target /// .Border(1, "Red", ChartDashType.Dot) /// ); /// ) /// .Render(); /// %> /// </code> /// </example> public ChartBulletTargetBuilder Border(int width, string color, ChartDashType dashType) { target.Border = new ChartElementBorder(width, color, dashType); return this; }
/// <summary> /// Sets the line dashType. /// </summary> /// <param name="dashType">The line dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .CategoryAxis(axis => axis.MajorGridLines(lines => lines.DashType(ChartDashType.Dot))) /// .Render(); /// %> /// </code> /// </example> public virtual ChartLineBuilderBase DashType(ChartDashType dashType) { line.DashType = dashType; return this; }
/// <summary> /// Sets the ticks dashType /// </summary> /// <param name="dashType">The ticks dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().LinearGauge() /// .Name("linearGauge") /// .Scale(scale => scale.MajorTicks(ticks => ticks.DashType(ChartDashType.Dot))) /// .Render(); /// %> /// </code> /// </example> public GaugeScaleTicksBuilder DashType(ChartDashType dashType) { ticks.DashType = dashType; return(this); }
/// <summary> /// Sets the target border /// </summary> /// <param name="width">The target border width.</param> /// <param name="color">The target border color (CSS syntax).</param> /// <param name="dashType">The target border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series /// .Bullet(s => s.Current, s => s.Target) /// .Target(target => target /// .Border(1, "Red", ChartDashType.Dot) /// ); /// ) /// .Render(); /// %> /// </code> /// </example> public ChartBulletTargetBuilder Border(int width, string color, ChartDashType dashType) { target.Border = new ChartElementBorder(width, color, dashType); return(this); }
/// <summary> /// Sets the line chart line dash type. /// </summary> /// <param name="dashType">The line dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Telerik().Chart() /// .Name("Chart") /// .Series(series => series.Line(s => s.Sales).DashType(ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartLineSeriesBuilder <T> DashType(ChartDashType dashType) { Series.DashType = dashType; return(this); }
/// <summary> /// Sets the chart area border. /// </summary> /// <param name="width">The border width.</param> /// <param name="color">The border color (CSS syntax).</param> /// <param name="dashType">The border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .ChartArea(chartArea => chartArea.Border(1, "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartAreaBuilder Border(int width, string color, ChartDashType dashType) { chartArea.Border = new ChartElementBorder(width, color, dashType); return this; }
/// <summary> /// Sets the axis title border /// </summary> /// <param name="width">The axis title border width.</param> /// <param name="color">The axis title border color.</param> /// <param name="dashType">The axis title dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .CategoryAxis(axis => axis /// .Title(title => title /// .Border(1, "#000", ChartDashType.Dot) /// ); /// ) /// .Render(); /// %> /// </code> /// </example> public ChartAxisTitleBuilder Border(int width, string color, ChartDashType dashType) { title.Border = new ChartElementBorder(width, color, dashType); return(this); }
/// <summary> /// Sets the border dashType. /// </summary> /// <param name="dashType">The border dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .ChartArea(chartArea => chartArea.Border(border => border.DashType(ChartDashType.Dot))) /// .Render(); /// %> /// </code> /// </example> public ChartBorderBuilder DashType(ChartDashType dashType) { border.DashType = dashType; return(this); }
/// <summary> /// Sets the markers border /// </summary> /// <param name="width">The markers border width.</param> /// <param name="color">The markers border color (CSS syntax).</param> /// <param name="dashType">The markers border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Telerik().Chart() /// .Name("Chart") /// .Series(series => series /// .Line(s => s.Sales) /// .Markers(markers => markers /// .Border(1, "Red", ChartDashType.Dot) /// ); /// ) /// .Render(); /// %> /// </code> /// </example> public ChartMarkersBuilder Border(int width, string color, ChartDashType dashType) { lineMarkers.Border = new ChartElementBorder(width, color, dashType); return this; }
/// <summary> /// Sets the markers border /// </summary> /// <param name="width">The markers border width.</param> /// <param name="color">The markers border color (CSS syntax).</param> /// <param name="dashType">The markers border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series /// .Line(s => s.Sales) /// .Markers(markers => markers /// .Border(1, "Red", ChartDashType.Dot) /// ); /// ) /// .Render(); /// %> /// </code> /// </example> public ChartMarkersBuilder Border(int width, string color, ChartDashType dashType) { lineMarkers.Border = new ChartElementBorder(width, color, dashType); return(this); }
/// <summary> /// Sets the chart area border. /// </summary> /// <param name="width">The border width.</param> /// <param name="color">The border color (CSS syntax).</param> /// <param name="dashType">The border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .ChartArea(chartArea => chartArea.Border(1, "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartAreaBuilder Border(int width, string color, ChartDashType dashType) { chartArea.Border = new ChartElementBorder(width, color, dashType); return(this); }
/// <summary> /// Initializes a new instance of the <see cref="ChartPolarAreaLine" /> class. /// </summary> public ChartPolarAreaLine(int width, string color, ChartDashType dashType, bool visible, ChartPolarAreaStyle style) : base(width, color, dashType, visible) { this.Style = style; }
/// <summary> /// Sets the legend border /// </summary> /// <param name="width">The legend border width.</param> /// <param name="color">The legend border color (CSS syntax).</param> /// <param name="dashType">The legend border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Telerik().Chart() /// .Name("Chart") /// .Legend(legend => legend.Border(1, "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartLegendBuilder Border(int width, string color, ChartDashType dashType) { legend.Border = new ChartElementBorder(width, color, dashType); return this; }
/// <summary> /// Sets the line dashType. /// </summary> /// <param name="dashType">The line dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Telerik().Chart() /// .Name("Chart") /// .Series(series => series /// .Area(s => s.Sales) /// .Line(line => line.DashType(ChartDashType.Dot)) /// ) /// .Render(); /// %> /// </code> /// </example> public override ChartLineBuilderBase DashType(ChartDashType dashType) { base.DashType(dashType); return(this); }
/// <summary> /// Sets the title border /// </summary> /// <param name="width">The title border width.</param> /// <param name="color">The title border color.</param> /// <param name="dashType">The title dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Telerik().Chart() /// .Name("Chart") /// .Title(title => title.Border(1, "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartTitleBuilder Border(int width, string color, ChartDashType dashType) { title.Border = new ChartElementBorder(width, color, dashType); return this; }
/// <summary> /// Sets the line dashType. /// </summary> /// <param name="dashType">The line dashType.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Series(series => series /// .Area(s => s.Sales) /// .Line(line => line.DashType(ChartDashType.Dot)) /// ) /// .Render(); /// %> /// </code> /// </example> public override ChartLineBuilderBase DashType(ChartDashType dashType) { base.DashType(dashType); return this; }
/// <summary> /// Sets the legend border /// </summary> /// <param name="width">The legend border width.</param> /// <param name="color">The legend border color (CSS syntax).</param> /// <param name="dashType">The legend border dash type.</param> /// <example> /// <code lang="CS"> /// <% Html.Kendo().Chart() /// .Name("Chart") /// .Legend(legend => legend.Border(1, "#000", ChartDashType.Dot)) /// .Render(); /// %> /// </code> /// </example> public ChartLegendBuilder Border(int width, string color, ChartDashType dashType) { legend.Border = new ChartElementBorder(width, color, dashType); return(this); }
public ChartNumericAxisBuilder MinorGridLines(int width, string color, ChartDashType dashType) { LegacyBuilder.MinorGridLines(width, color, dashType); return(LegacyBuilder); }