-
Data Grid
- Overview
-
Data Binding
-
Paging and Scrolling
-
Editing
-
Grouping
-
Filtering and Sorting
- Focused Row
-
Row Drag & Drop
-
Selection
-
Columns
- State Persistence
-
Appearance
-
Templates
-
Data Summaries
-
Master-Detail
-
Export to PDF
-
Export to Excel
-
Adaptability
- Keyboard Navigation
-
Pivot Grid
- Overview
-
Data Binding
-
Field Chooser
-
Features
-
Export to Excel
-
Tree List
- Overview
-
Data Binding
- Sorting
- Paging
-
Editing
- Node Drag & Drop
- Focused Row
-
Selection
-
Filtering
-
Column Customization
- State Persistence
- Adaptability
- Keyboard Navigation
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Features
- Virtual Scrolling
-
Grouping
-
Customization
- Adaptability
-
Html Editor
-
Chat
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
Charts
- Overview
-
Data Binding
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Line Charts
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
-
Sparkline Charts
-
Tree Map
-
Funnel and Pyramid Charts
- Sankey Chart
-
Combinations
-
More Features
-
Export
-
Selection
-
Tooltips
-
Zooming
-
-
Gantt
- Overview
-
Data
-
UI Customization
- Strip Lines
- Export to PDF
- Sorting
-
Filtering
-
Gauges
- Overview
-
Data Binding
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Navigation
- Overview
- Accordion
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
- Pagination
-
Tree View
- Right-to-Left Support
-
Layout
-
Tile View
- Splitter
-
Gallery
- Scroll View
- Resizable
-
-
Editors
- Overview
- Autocomplete
-
Calendar
- Check Box
- Color Box
- Date Box
-
Date Range Box
-
Drop Down Box
-
Number Box
-
Select Box
- Switch
-
Tag Box
- Text Area
- Text Box
- Validation
- Custom Text Editor Buttons
- Right-to-Left Support
- Editor Appearance Variants
-
Forms and Multi-Purpose
- Overview
- Button Group
- Field Set
-
Filter Builder
-
Form
- Radio Group
-
Range Selector
- Numeric Scale (Lightweight)
- Numeric Scale
- Date-Time Scale (Lightweight)
- Date-Time Scale
- Logarithmic Scale
- Discrete scale
- Custom Formatting
- Use Range Selection for Calculation
- Use Range Selection for Filtering
- Image on Background
- Chart on Background
- Customized Chart on Background
- Chart on Background with Series Template
- Range Slider
- Slider
-
Sortable
-
File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Actions and Lists
-
Maps
- Overview
-
Map
-
Vector Map
-
Dialogs and Notifications
-
Localization
Related Demos:
Your search did not match any results.
Charts - Range Bar
This demo illustrates the range bar series type.
You can use range bars to display value ranges that correspond to specified arguments. Each point in a range bar series has one argument and two values. The argumentField supplies arguments while the rangeValue1Field and rangeValue2Field supply bar start and end point values.
Was this demo helpful?
Feel free to share demo-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Backend API
@(Html.DevExtreme().Chart()
.ID("chart")
.Palette(VizPalette.Violet)
.Title("Crude Oil Prices in 2005")
.Tooltip(t => t.Enabled(true))
.CommonSeriesSettings(s => s
.ArgumentField("Date")
.Type(SeriesType.RangeBar)
.MinBarSize(2)
)
.Series(s => {
s.Add().RangeValue1Field("AVal1").RangeValue2Field("AVal2").Name("ANS West Coast");
s.Add().RangeValue1Field("TVal1").RangeValue2Field("TVal2").Name("West Texas Intermediate");
})
.ValueAxis(a => a
.Add()
.Title(t => t.Text("$ per barrel"))
)
.ArgumentAxis(a => a.Label(l => l.Format(Format.Month)))
.Export(e => e.Enabled(true))
.Legend(l => l
.VerticalAlignment(VerticalEdge.Bottom)
.HorizontalAlignment(HorizontalAlignment.Center)
)
.DataSource(new[] {
new { Date = new DateTime(2005, 1, 1), AVal1 = 34.33, AVal2 = 43.29, TVal1 = 40.18, TVal2 = 49.91 },
new { Date = new DateTime(2005, 2, 1), AVal1 = 42.24, AVal2 = 47.07, TVal1 = 29.65, TVal2 = 51.75 },
new { Date = new DateTime(2005, 3, 1), AVal1 = 42.93, AVal2 = 52.77, TVal1 = 51.01, TVal2 = 56.72 },
new { Date = new DateTime(2005, 4, 1), AVal1 = 44.24, AVal2 = 54.14, TVal1 = 48.06, TVal2 = 57.27 },
new { Date = new DateTime(2005, 5, 1), AVal1 = 44.47, AVal2 = 49.03, TVal1 = 47.28, TVal2 = 52.07 },
new { Date = new DateTime(2005, 6, 1), AVal1 = 50.55, AVal2 = 57.94, TVal1 = 55.01, TVal2 = 60.54 },
new { Date = new DateTime(2005, 7, 1), AVal1 = 52.79, AVal2 = 58.98, TVal1 = 55.52, TVal2 = 61.28 },
new { Date = new DateTime(2005, 8, 1), AVal1 = 56.49, AVal2 = 67.06, TVal1 = 62.23, TVal2 = 68.94 },
new { Date = new DateTime(2005, 9, 1), AVal1 = 62.77, AVal2 = 66.72, TVal1 = 65.19, TVal2 = 69.47 },
new { Date = new DateTime(2005, 10, 1), AVal1 = 57.52, AVal2 = 63.47, TVal1 = 59.35, TVal2 = 65.47 },
new { Date = new DateTime(2005, 11, 1), AVal1 = 52.92, AVal2 = 59.98, TVal1 = 56.15, TVal2 = 61.78 },
new { Date = new DateTime(2005, 12, 1), AVal1 = 55.22, AVal2 = 55.22, TVal1 = 57.34, TVal2 = 57.37 }
})
)
using DevExtreme.AspNet.Data;
using DevExtreme.AspNet.Mvc;
using DevExtreme.MVC.Demos.Models.SampleData;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace DevExtreme.MVC.Demos.Controllers {
public class ChartsController : Controller {
public ActionResult RangeBar() {
return View();
}
}
}
#chart {
height: 440px;
}
To create multiple range bar series, use the series array to declare each series and the commonSeriesSettings object to specify the common series type. In this object, you can implement parameters specific to the range bar series type. For example, this demo specifies a minimum bar size for all series.