Your search did not match any results.
Charts

Selection

Documentation
This demo illustrates the use of the pointClick callback function to implement selection in the Chart widget. The selectionMode of the series is set to "allArgumentPoints", which means that when a user selects a point, other points with the same argument also become selected.
www.geohive.com
@(Html.DevExtreme().Chart() .ID("chart") .Rotated(true) .CommonSeriesSettings(s => s .ArgumentField("Country") .Type(SeriesType.Bar) .HoverMode(ChartSeriesHoverMode.AllArgumentPoints) .SelectionMode(ChartSeriesSelectionMode.AllArgumentPoints) .Label(l => l .Visible(true) .Format(f => f.Type(Format.Percent).Precision(1)) ) ) .ValueAxis(a => a.Add().Label(l => l.Format(f => f.Type(Format.Percent).Precision(1)))) .Series(s => { s.Add().ValueField("Year2007").Name("2007 - 2008"); s.Add().ValueField("Year2008").Name("2008 - 2009"); }) .Title(t => t.Text("Economy - Export Change")) .Legend(l => l .VerticalAlignment(VerticalEdge.Bottom) .HorizontalAlignment(HorizontalAlignment.Center) ) .Export(e => e.Enabled(true)) .OnPointClick(@<text> function(e) { e.target.select(); } </text>) .OnLegendClick(@<text> function(e) { var series = e.target; if(series.isVisible()) { series.hide(); } else { series.show(); } } </text>) .DataSource(new List<object> { new { Country = "China", Year2007 = 0.1732, Year2008 = -0.1588 }, new { Country = "Germany", Year2007 = 0.0964, Year2008 = -0.2231 }, new { Country = "United States", Year2007 = 0.1187, Year2008 = -0.1878 }, new { Country = "Japan", Year2007 = 0.1081, Year2008 = -0.2614 }, new { Country = "France", Year2007 = 0.1014, Year2008 = -0.2222 }, new { Country = "Netherlands", Year2007 = 0.1355, Year2008 = -0.2015 } }) )
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; namespace DevExtreme.NETCore.Demos.Controllers { public class ChartsController : Controller { public ActionResult Selection() { return View(); } } }
#chart { height: 440px; }