winforms-devexpress-charts

Implements DevExpress WinForms ChartControl data visualization with series, diagrams, axes, legends, and tooltips.

Updated Dec 11, 2025
One-click install
npx skills add https://github.com/AleksaRistic216/dotnet-playground --skill winforms-devexpress-charts-aleksaristic216
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: winforms-devexpress-charts
Source: https://github.com/AleksaRistic216/dotnet-playground/tree/main/.github/skills/winforms/winforms-devexpress-charts
Command: npx skills add https://github.com/AleksaRistic216/dotnet-playground --skill winforms-devexpress-charts-aleksaristic216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires DevExpress.Win.Charts, DevExpress.Win.Printing, and includes references (resource) components.

What problem does it solve? Building charts in WinForms with DevExpress.XtraCharts requires navigating a four-level hierarchy (ChartControl, Diagram, Series, View) where the diagram type is implicitly chosen by the first series added, and misconfiguring scale types, aggregation, or tooltip/crosshair settings leads to broken or slow charts. This Skill provides the correct API patterns, compatibility rules, and troubleshooting guidance to implement charts correctly the first time. ## Core Features & Use Cases - Series View & Diagram Selection: Choose from 50+ series views (Bar, Line, Pie, Financial, Radar, Gantt, SwiftPlot) with a compatibility table showing which views share a diagram. - Data Binding: Bind series to DataTable, IList, EF DbSet, or use SeriesTemplate to auto-generate one series per category; supports financial OHLC binding via SetFinancialDataMembers. - Axes, Aggregation & Performance: Configure primary/secondary axes, Numerical/DateTime/TimeSpan/Qualitative scale types, automatic aggregation for large datasets, and SwiftPlotDiagram for millions of points. - Interaction: Configure legends, tooltips vs crosshair cursor, and selection modes (Single/Multiple/Extended) with per-point or per-argument granularity. - Use Case: A developer needs a monthly revenue bar chart bound to EF Core data with a currency-formatted Y axis, a secondary axis for temperature, and zoom-adaptive date aggregation — the Skill supplies the exact code patterns for each step. ## Quick Start Ask the AI to add a DevExpress ChartControl to a WinForms form with a bound bar series, formatted axes, a legend, and point selection enabled.

Frequently Asked Questions about winforms-devexpress-charts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bind data to a DevExpress WinForms ChartControl?

Set the series DataSource to any IEnumerable, DataTable, or BindingList, then assign ArgumentDataMember for the X values and ValueDataMembers for the Y values. Set ArgumentScaleType explicitly (for example ScaleType.DateTime) to avoid runtime type inference.

How do I create multiple series from one data source in XtraCharts?

Use chart-level template binding: set ChartControl.DataSource, set SeriesDataMember to the category column, and configure SeriesTemplate with ArgumentDataMember, ValueDataMembers, and a View. The chart auto-generates one series per category value.

Why is ChartControl.Diagram null when I cast it to XYDiagram?

The Diagram property is null until at least one series is added, because the first series' ViewType implicitly determines the diagram type. Add a series first, then null-check and cast chart.Diagram to XYDiagram.

Does the DevExpress WinForms chart support tooltips on 3D charts?

No. 3D diagrams (XYDiagram3D, SimpleDiagram3D) do not support tooltips, the crosshair cursor, or runtime selection. Those interaction features are only available on 2D diagrams.

How do I handle millions of data points in a WinForms chart?

Switch to SwiftPlotDiagram with SwiftPlotSeriesView for hardware-accelerated rendering of every point, or enable axis aggregation with ScaleMode.Automatic and an AggregateFunction to bucket points. Combining both gives the fastest large-data rendering.

Why is my axis title not showing in the DevExpress chart?

Axis title Visibility defaults to False, so setting Title.Text alone shows nothing. Set Axis.Title.Visibility = DefaultBoolean.True along with the Text to make the title appear.