Your search did not match any results.
Charts

Hover Mode

Documentation
The Chart and PieChart widgets support different modes of series hovering. This demo shows the "includePoints" mode, when all the points of a hovered series change their display style. In addition, you can specify a custom hover mode for legend items. Here, the "excludePoints" mode is used, when only the series line changes its display style leaving the points as they were.
www.bea.gov
@(Html.DevExtreme().Chart() .ID("chart") .CommonSeriesSettings(s => s .ArgumentField("State") .Type(SeriesType.Spline) .HoverMode(ChartSeriesHoverMode.IncludePoints) .Point(p => p.HoverMode(ChartPointInteractionMode.AllArgumentPoints)) ) .Series(s => { s.Add().ValueField("Year2004").Name("2004"); s.Add().ValueField("Year2001").Name("2001"); s.Add().ValueField("Year1998").Name("1998"); }) .Title(t => t.Text("Great Lakes Gross State Product")) .Export(e => e.Enabled(true)) .Legend(l => l .VerticalAlignment(VerticalEdge.Bottom) .HorizontalAlignment(HorizontalAlignment.Center) .HoverMode(ChartLegendHoverMode.ExcludePoints) ) .DataSource(new List<object> { new { State = "Illinois", Year1998 = 423.721, Year2001 = 476.851, Year2004 = 528.904 }, new { State = "Indiana", Year1998 = 178.719, Year2001 = 195.769, Year2004 = 227.271 }, new { State = "Michigan", Year1998 = 308.845, Year2001 = 335.793, Year2004 = 372.576 }, new { State = "Ohio", Year1998 = 348.555, Year2001 = 374.771, Year2004 = 418.258 }, new { State = "Wisconsin", Year1998 = 160.274, Year2001 = 182.373, Year2004 = 211.727 } }) )
using DevExtreme.AspNet.Data; using DevExtreme.AspNet.Mvc; using DevExtreme.MVC.Demos.Models; using DevExtreme.MVC.Demos.Models.SampleData; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Web.Mvc; namespace DevExtreme.MVC.Demos.Controllers { public class ChartsController : Controller { public ActionResult HoverMode() { return View(); } } }
#chart { height: 440px; }