Chart
- 3 minutes to read
Chart is an interactive UI component that visualizes data from local or remote storage with various series types.
Getting Started
The Chart UI Control is based on the DevExtreme Chart component.
To add this control to your project, follow instructions in the following help topics:
- Configure a Visual Studio Project or Configure a non Visual Studio Project
- Add Controls to a Project
- Razor Syntax
Basic Syntax
@using ASP.NET_Core.Models.Chart
@model List<ChartData>
@(Html.DevExtreme().Chart()
.DataSource(Model)
.Series(s => s
.Add()
.Type(SeriesType.Bar)
.ArgumentField("Year")
.ValueField("Value")
)
.ArgumentAxis(aa => aa
.TickInterval(10)
.ArgumentType(ChartDataType.String)
)
)
Built-in Capabilities and Configuration Guides
Series Types
The Chart component includes over 20 series types, with the most popular ones being:Combine them, customize appearance, and configure individual points.
Data Sources
Chart can load and update data from various data source types. Bind data directly or use a series template.Informational Elements
You can enhance the Chart with additional information elements, such as:Interactive Features
Add interactivity to your Chart with the following elements:Customization
The following Chart customizations are available:Data Aggregation
Charts with too many series points can impact performance and readability. To improve analysis, DevExtreme Chart supports point and discrete aggregation modes.
API
Server-Side API
- Initialization
- Call the Chart() method to create a Chart control. This action initializes a ChartBuilder instance. Use the instance methods to specify Chart options and event handlers.
- Options
- For a complete option list, see Options. For details on how to specify control options, refer to the following help topic: Specify Options.
- Events
- For available events, see Events. For details on how to handle events, refer to the following help topic: Handle Events and Define Callbacks.
Client-Side API
- Options
- If you need to specify the Chart options dynamically on the client side, use client-side API. For a complete option list, see DevExtreme Chart options.
- Methods
- For a list of available methods, see DevExtreme Chart methods. For details on how to call methods, refer to the following help topic: Call Methods.