Skip to main content

Chart

  • 3 minutes to read

Chart is an interactive UI component that visualizes data from local or remote storage with various series types.

Run Demo: Chart Read Tutorial

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:

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

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.

Demos

Run Demo: Chart

See Also