StepLine Chart
- Getting Started
- Setting Up ASP.NET Core MVC
- Accessibility
- Chart
- ASP.NET
- Overview
- Getting Started
- Design-time Support
- ItemTypes
- Chart Elements
- Chart Types
- Area Chart
- Bar Chart
- Bubble Chart
- Line Chart
- Pie Chart
- Sparklines
- Donut Chart
- Scatter Chart
- Spline Chart
- SplineArea Chart
- RangeArea Chart
- RangeBar Chart
- RangeSpline Chart
- StepLine Chart
- StepArea Chart
- PolarLine Chart
- PolarArea Chart
- PolarBar Chart
- PolarSpline Chart
- PolarSplineArea Chart
- PolarScatter Chart
- Combining Chart Types
- Data Binding
- Exporting
- Localization
- Selection
- Zooming and Panning
- Appearance and Styling
- Server Side Events
- Client Events
- Supported Browsers
- ASP.NET Core
- ASP.NET MVC
- JAVA Apache Wicket
- API
- allowUTCFormatting
- applyAnimation
- axisX
- axisTickText
- axisType
- categoricalValues
- decimalTicks
- drawColor
- drawWidth
- endOffset
- fixedEnd
- inverseOrder
- max
- min
- minorPlotStripColor
- minorPlotStripDashStyle
- minorPlotStripWidth
- minorTicksColor
- minorTicksHeight
- minorTicksRepeat
- minorTicksWidth
- offset
- plotBands
- plotLines
- plotStripColor
- plotStripDashStyle
- plotStripWidth
- startOffset
- swapLocation
- ticksColor
- ticksHeight
- ticksPlacement
- ticksRepeat
- ticksWidth
- title
- axisY
- axisTickText
- axisType
- decimalTicks
- drawColor
- drawWidth
- endOffset
- fixedEnd
- inverseOrder
- max
- min
- minorPlotStripColor
- minorPlotStripDashStyle
- minorPlotStripWidth
- minorTicksColor
- minorTicksHeight
- minorTicksRepeat
- minorTicksWidth
- offset
- plotBands
- plotLines
- plotStripColor
- plotStripDashStyle
- plotStripWidth
- startOffset
- swapLocation
- ticksColor
- ticksHeight
- ticksPlacement
- ticksRepeat
- ticksWidth
- title
- backgroundColor
- borderColor
- borderRadius
- borderWidth
- chartAreaBackgroundColor
- chartAreaBackgroundImage
- chartAreaBorderColor
- chartAreaBorderWidth
- chartAreaPaddingBottom
- chartAreaPaddingLeft
- chartAreaPaddingRight
- chartAreaPaddingTop
- chartLegend
- dataSeries
- enableAutoFit
- events
- exportOptions
- height
- isInverted
- margin
- primaryHeader
- secondaryHeader
- seriesPalette
- seriesSettings
- area
- bar
- bubble
- donut
- line
- pie
- polararea
- polarbar
- polarline
- polarscatter
- polarspline
- polarsplinearea
- rangearea
- rangebar
- rangesplinearea
- scatter
- spline
- splinearea
- steparea
- stepline
- seriesType
- theme
- tooltipSettings
- width
- zoomMode
- Getting Started
- Events
- How-To
- Methods
- Styling
- Supported Browsers
- ASP.NET
- Barcode
- QR Code
- TagCloud
- TreeMap
- Grid
- ASP.NET
- ASP.NET Core
- ASP.NET MVC
- JAVA Apache Wicket
- JavaScript
- API
- Settings
- altRowTemplate
- altRows
- columnReorder
- columns
- dataSource
- detailCollapseCssClass
- detailCollapseText
- detailExpandCollapse
- detailExpandCssClass
- detailExpandText
- detailTemplate
- editing
- exportOptions
- filtering
- grouping
- height
- maxHeight
- noRecordsTemplate
- noRecordsText
- paging
- resizing
- rowHover
- rowTemplate
- scrolling
- selection
- showHeader
- sorting
- toolbar
- Events
- Properties
- Methods
- addRow
- cancelEditing
- clearSelection
- collapseRow
- dataItem
- deleteRow
- destroy
- editCell
- editRow
- expandRow
- exportCsv
- exportExcel
- exportPdf
- filter
- hideColumn
- insertRow
- isHidden
- isLocked
- lockColumn
- page
- pageSize
- refresh
- reorderColumn
- revertChanges
- saveChanges
- scrollTop
- select
- selectedRowIndices
- showColumn
- sort
- ungroup
- unlockColumn
- Settings
- Getting Started
- Autogenerated Editors
- Binding to Data
- Cancel User Iteraction
- Change Options Dynamically
- Columns
- Custom Editors
- Exporting
- Filtering
- Footer Total Aggregates
- Grouping
- Hierarchy
- Paging
- RTL
- Scrolling
- Selection
- Sorting
- Templates
- Themes
- Validation
- API
- Accordion
- AutoComplete
- Button
- Calendar
- CheckBox
- ColorPicker
- ComboBox
- ContextMenu
- DataSource
- DatePicker
- DateTimePicker
- Draggable
- DropDown
- Droppable
- Editor
- ListBox
- LoadingPanel
- MaskedTextBox
- Menu
- MonthYearPicker
- NumericTextBox
- Pager
- ProgressBar
- RadioButton
- Rating
- RecursiveDataSource
- Slider
- SplitButton
- Splitter
- Switch
- Tabs
- TextBox
- TimePicker
- Timeline
- Tooltip
- TreeView
- Upload
- Window
StepLine graph renders step-like visuals to the next point. They are useful for creating presentations where relationship between variables and how that relationship changes.For example, you might make a line graph to show how an humans growth rate varies over time, or how a countries average high temperature varies from month to month. You can also graph more than one data set on the same line graph.
The chart from the image above is created with the following code:
<shield:ShieldChart ID="ShieldChart1" Width="100%" Height="400px" runat="server" OnTakeDataSource="ShieldChart1_TakeDataSource" CssClass="chart"> <PrimaryHeader Text="Twitter Usage Trends October 2010"></PrimaryHeader> <Axes> <shield:ChartAxisX AxisType="Datetime" FixedEnd="false"></shield:ChartAxisX> <shield:ChartAxisY EndOffset="0"> </shield:ChartAxisY> </Axes> <DataSeries> <shield:ChartStepLineSeries> </shield:ChartStepLineSeries> </DataSeries> </shield:ShieldChart>
protected override void OnLoad(EventArgs e) { base.OnLoad(e); (ShieldChart1.DataSeries[0] as Shield.Web.UI.ChartStepLineSeries).DataStart = (decimal)(new DateTime(2010, 1, 1) - new DateTime(1970, 1, 1).ToUniversalTime()).TotalMilliseconds; (ShieldChart1.DataSeries[0] as Shield.Web.UI.ChartStepLineSeries).DataStep = 24 * 3600 * 1000; } protected void ShieldChart1_TakeDataSource(object sender, Shield.Web.UI.ChartTakeDataSourceEventArgs e) { Listdatasource = new List () { 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 195.6, 154.4, 145, 133, 145, 167, 189, 134, 156, 178, 190, 165, 143, 123, 145, 165, 112, 115, 112, 123, 145, 167, 189 }; ShieldChart1.DataSource = datasource; }
- When the chart is bound to collection of objects the X values are got by the field which name is set into the
DataFieldX
property of theChartStepLineSeries
. The Y values are got by the field which name is set into theDataFieldY
property. - The name that is shown in the legend is chosen via the
CollectionAlias
property of theChartStepLineSeries
. - By default all X values are sorted in order line chart to be shown appropriately, however this behavior is controlled by the
EnableValueXSorting
property of theChartStepLineSeries
. - The type of the
ChartStepLineSeries
can be changed by theSettings.SeriesDashStyle
property and it can be set as:Solid
,ShortDash
,ShortDot
,ShortDashDot
,Dot
, etc. DataStart
andDataStep
properties control the start value of the x axis and explicit value for the interval between a data series member values.- All points from the
ChartStepLineSeries
are represented withChartSeriesItem
which belongs to theChartStepLineSeries.Items
collection.- The
ChartStepLineSeries.Items
can be added declarative without data binding. - The data binding and declarative approach can be mixed. However in order declarative items to be appended to the items created from the datasource the
ShieldChart.AppendDataBoundItems
property need to be set to"true"
.
- The
- All setting related to
ChartStepLineSeries
are contained into theChartStepLineSeries.Settings
object.- The series color can be set via
Color
property. - If the
AddToLegend
is set to false the series is not added into the legend. - The animation of the series can be controlled by
ChartStepLineSeries.Settings.EnableAnimation
andChartStepLineSeries.Settings.AnimationDuration
properties. - If some values are missing (i.e. they are null/Nothing) from the series data you can have the chart work around this by setting the
DrawNullValues
property. - If the chart has more than one line series they can be ordered by the index set in
ChartStepLineSeries.OrderIndex
property. - Each point from the series can be selected if the
EnablePointSelection
property is set to true. - All selected points can be customized by
Settings.PointMark.ActiveSettings.PointSelectedState
object properties. - From the
Settings.PointMark.ActiveSettings.PointHoveredState
object properties you can change the appearance of each line when the user hovers it. - Each series has related tooltip which can be customized via the
Settings.Tooltip
object. - Each point from the series can have related text, which appearance is controlled by
Settings.DataPointText
property. You can changeBackgroundColor
,BorderColor
,Color
,Padding
, andTextAngle
of the corresponding data point text.
- The series color can be set via