-
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
-
Reporting
-
Interaction
-
Report Types
-
Data binding
-
Real-life Reports
-
Layout Features
-
Report Controls
-
Web-specific Features
-
-
Rich Text Editor
- Overview
- Load/Save
- Document Protection
-
Templates
- Autocorrect
-
Customization
- Simple View
-
Spreadsheet
- Overview
-
Open a Document
- Export And Printing
-
Features
-
UI Customization
-
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 - Scatter
Scatter charts can be used whenever you need to allow the user to draw their own conclusions about information displayed within the chart.
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")
.CommonSeriesSettings(s => s.Type(SeriesType.Scatter))
.Series(s => {
s.Add().ArgumentField("X1").ValueField("Y1");
s.Add().ArgumentField("X2").ValueField("Y2").Point(p => p
.Symbol(PointSymbol.TriangleDown)
);
})
.ArgumentAxis(a => a
.Grid(g => g.Visible(true))
.TickInterval(5)
.MinorGrid(g => g.Visible(true))
)
.ValueAxis(a => a.Add().TickInterval(50))
.Legend(l => l.Visible(false))
.CommonPaneSettings(s => s.Border(b => b.Visible(true)))
.DataSource(Model)
)
using DevExtreme.AspNet.Data;
using DevExtreme.AspNet.Mvc;
using DevExtreme.NETCore.Demos.Models;
using DevExtreme.NETCore.Demos.Models.SampleData;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
namespace DevExtreme.NETCore.Demos.Controllers {
public class ChartsController : Controller {
public ActionResult Scatter() {
return View(SampleData.GetScatterData());
}
}
}
using System;
using System.Collections.Generic;
using DevExpress.Data.Utils;
namespace DevExtreme.NETCore.Demos.Models.SampleData {
public partial class SampleData {
public static IEnumerable<object> GetScatterData() {
var rnd = NonCryptographicRandom.System;
double b1 = rnd.Next(-100, 100) / 10;
double b2 = rnd.Next(-100, 100) / 10;
double k1 = rnd.Next(-100, 100) / 10;
double k2 = rnd.Next(-100, 100) / 10;
if(k1 < 0.1 && k1 >= 0) k1 = 0.1;
if(k1 > -0.1 && k1 < 0) k1 = -0.1;
if(k2 < 0.1 && k2 >= 0) k2 = 0.1;
if(k2 > -0.1 && k2 < 0) k2 = -0.1;
double deviation1 = Math.Round(k1 * 8);
double deviation2 = Math.Round(k2 * 8);
for(int i = 0; i < 30; i++) {
var isNegativeDelta = rnd.Next(0, 1) == 0;
double delta1 = deviation1 * rnd.NextDouble();
double delta2 = deviation2 * rnd.NextDouble();
if(isNegativeDelta) {
delta1 = -delta1;
delta2 = -delta2;
}
double x1 = rnd.Next(1, 20);
double x2 = rnd.Next(1, 20);
double y1 = k1 * x1 + b1 + delta1;
double y2 = k2 * x2 + b2 + delta2;
yield return new { X1 = x1, Y1 = y1, X2 = x2, Y2 = y2 };
}
}
}
}
#chart {
height: 440px;
}