WinForms Controls > Controls > Chart Control
The DevExpress WinForms Charts Suite provides over different 2D and 3D chart types, ranging from simple bar and pie Cha RTS, to complex financial charts such as stock and candle stick charts. DevExpress WinForms Charts also give you the flexibility to bind to any datasource that supports the IList or IEnumerable Interface. And with the built-in Charts Wizard, you can configure a chart of any complexity quickly and easily at design time.
Click on a tiles below to learn more about our comprehensive WinForms Charts Suite.
START here |
Learn More |
How to |
REFERENCE |
Getting Started |
Concepts |
Examples |
Included components |
Fundamental Concepts |
Visual Elements |
Code Central |
Training Videos |
End-User capabilities |
Demos in Installation |
|
|
Design-time Features |
|
--------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------
WinForms Controls > Controls > Chart Control > Getting Started
This document gives your a quick overview of what resources you need to review first to get started with the Xtracharts Sui Te. These examples demonstrate the basic functionality of xtracharts, and provide you with the step-by-step instructions on HO W to create simple and advanced charting applications in MS Visual Studio.
For basic information The Xtracharts Suite, please refer to the Fundamentals section. Step-by-Step tutorials
To quickly get started with xtracharts, we suggest so you review the following tutorials. Lesson 1-create a chart using the Wizard Lesson 2-create a simple unbound chart Lesson 3-bind chart Series to Data L Esson 4-use the series Template for auto-created series
Online Videos
In addition to the lessons listed above, we had prepared a lot of online videos to help you become familiar with Xtrachar Ts. They'll be is particular interest to those developers who recently started working with Visual Studio. NET, or has not Yet had an opportunity to see xtracharts in action. In general, these online demos show how to replicate the steps that is described in the corresponding lessons, and also D Emonstrate some additional features.
Xtracharts Online videos is available on the DevExpress Channel website.
See Also charting Basics----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- First lesson creating a chart with a wizard (chart) The tutorial Introduction to the Chart Wizard will allow you and the end user to create and customize any level of complexity of the diagram from scratch. In this example, use the wizard to create a simple free chart. However, note that if you define the Chartcontrol.datasource property of the chart, the wizard can provide a series of data-related settings so that you can do some very complex data binding operations. By default, the Chart Wizard is automatically activated each time you drag a Chartcontrol control from the toolbar to the window (if the Show Wizard every time you add a new chart option is available in the status bar of the wizard). Click the smart tag to start the wizard quickly and select the Run Wizard command from the action list. Lesson1
Lesson 1-create a Chart using the Wizard |
|
WinForms Controls > Controls > Chart Control > Getting Started > Lesson 1-create a chart using the Wizard
This tutorial introduces the chart Wizard, which allows you and your end-users to create and customize a chart of any leve L of complexity from scratch. In this example, we'll use the Wizard to create a simple unbound chart. However, note that if your chart ' Schartcontrol. DataSource is defined, the Wizard also provides a complete set of data-related settings Even the most complex data binding tasks.
By default, the Wizard was automatically invoked each time a chartcontrol are dropped from the toolbox, (if the "Display a W Izard every time a new chart is added "option on the Wizard's status bar is enabled." And, you can quickly run the Wizard for your chart, by clicking it smart Tag, and from its actions list, choosing the run Wizard ... Command.
Then, proceed with the Wizard's steps, to construct the chart.
Follow the wizard to finish building the chart.
On the first chart type page, choose the Bar chart type. The type specified at this step are not absolute, and you'll have the option to change it in anotherSeries page, Because the chart type (Thediagram type) is determined by the view type of the IT displays.
The first page is the chart Type page, select bar chart. The chart type selected by the wizard in this tutorial is specific, you can choose either chart type when you develop it, or you can change the type of the chart at any time.
Switch to the next appearance page. Here, you can choose the Look-and-feel for your chart by specifying Itspalette and choosing its specificstyle. For details on this, refer Toappearance customization.
Look over the next appearance (appearance) page. You can choose a specific appearance for the chart by setting the palette (color palette) and choosing the style (style).
The next Series page is where you actually determine the type of your chart. It depends on which view type have the first visible series in the chart ' s collection. And, in order to combine multiple series of different types within the same chart, their view types must is compatible. For details on this, the refer to combining Different Series views.
The series page is where you really design your chart type. It depends on which view type (view types) has the first visible series (sequence) in the chart collection. In order to use multiple series of different types for a single chart, their view type must be compatible. The Translator notes: A sequence is a set of numbers.
On this page, after you has created a series of the required types, ensure that Theirvalue scale types is defined Approp Riately. Because declaring an accurate scale type series points ' values are crucial for getting the correct output. The argument scale types is defined automatically, by default.
After you create a sequence of required types, make sure that their value types are correctly defined. Because you want the correct result, you require that the point set sequence must be of the exact value type. The value type of the argument is automatically set to the default value.
To learn about other options available on this tab, refer to the Wizard's structure:the construction Page Group.
The next Data page provides options for populating the series with points. This can is either donemanually (by specifyingarguments and their values for each point) or-if your chart ' sdata source I S defined-automatically (by specifying the data bindings for your series). For details on this, refer Toproviding Data.
The data page provides settings for the point sequence generation. The point sequence can be set manually (by setting the argument (argument) and value (dependent variable) for each point) or by defining the data source property of the chart automatically (defined by the binding sequence)
At this step, the chart's construction is finished, so you can click Finish to see the result.
After the chart is built, click Finish to view the results.
The pages in the next Presentation group allow you to adjust the appearance of the chart and its elements, and AR E detailed in the following document:the Wizard ' s structure:the Presentation Page Group. --------------------------------------------------------------------------------------------------------------- ----------------------
Lesson 2-create a simple unbound Chart |
|
Lesson two creating a simple chartWinForms Controls > Controls > Chart Control > Getting Started > Lesson 2-create a simple unbound chart
This example demonstrates how to construct a chart at design time within Visual Studio with manually created and populated Series.
To create a simple unbound chart, do the following.
This example demonstrates how to use Visual Studio to build a diagram at design time and manually create and construct data. Create a chart and add series to it Customize the chart created a charts and add series to it creates a diagram and adds a sequence
Start MS Visual Studio (or), and create a new Windows Forms application or open an existing one. Start Ms Visual Studio, create a window application, or open an existing In the project
From the Dx.13.1:data & Analytics Toolbox tab, drop the Chartcontrol onto the form.
Drag Chartcontrol from the Dx:data&analysis toolbar page to the window. (I use 10.2 myself)
Note that after you drop the chart, the chart Wizard could be invoked (if it "Display a Wizard every time a new chart is ad Ded "option is enabled." In this example, we don't need to use the wizard, so clickCancel to close its window. For this example, you do not need a wizard, select Cancel to close the wizard window.
Note |
For the chart to occupy all of the available space on the form, click the chart's smart tag, and in its actions list, clic KDock in Parent Container. |
To make the chart occupy all of the available space in the window, click the Smart tab, and in the action list, click Dock in parent Container (docked in the parents container). (The following image is added by the translator)To add a new series to the chart, click the chart's smart tag, and in its Actions list, click theSeries ...Link. In the smart Tag action list of the chart, clickSeries ...Link to a chart add a new sequence then, in the invokedSeries Collection EditorClickAdd .... in the active Sequence Collection EditorSeries Collection Editor, click Add ...。
In the Series View Types dialog, specify the view type of the series being created.
Note that the view type of the first visible series in the chart ' s collection determines itsdiagram type.
For example, choose the Bar series, for the chart to get the xy-type.   ; in series View The Type Sequence Type dialog box specifies the view types of the sequence that will be created. Note The view type of the first column visible sequence in the chart collection determines the final diagram type.
Note |
The available view types is listed in 2D chart types and 3D chart types. |
Xtracharts automatically detects the data type of series arguments. This means so you don ' t need to specify the Seriesbase.argumentscaletype property before providing data for a chart, BEC Ause it is set to
AutoBy default. Just Make sure the default value of the "Seriesbase.valuescaletype property" meets your requirements for some view types. Otherwise, select another value scale type (e.g.
BarSeries view). Xtracharts automatically determines the data type of the sequence's arguments. This means that you do not need to specify the data before you provide it
Seriesbase. ArgumentscaletypeProperty because the default is set to
Auto。 Just ensure that the default value parametric Seriesbase.valuescaletype property meets your view type needs, otherwise choose a different value type. can perform this
Propertiestab of the dialog. Action on the Properties property page
To manually add points to your series, switch back to the points tab. Although, some series view types may require more than one value for each point ' s argument (e.g., inbubble or Stock series ), it's more typical-a point to has only a argument and value pair, which correspond to the point ' s X and Y Coordina TES along the appropriateaxes.
In the your chart, you can create as many different series as required. Moreover, you can combine series of different view types within the same chart,if these view types is compatible. For example, add a Spline series.
You can create any number of sequences, and you can combine different view types on the same chart, as long as these views are compatible, such as adding a spline spline sequence.
To apply the changes and quit the dialog, click Close. Now, the your chart has a different series, populated with points. It now looks like in the following image.
Apply Settings and exit the dialog box and click Close. There are now two different types of sequences on the chart.
Customize the Chart
Customize The legend custom legend
By default, the chart's legend is shown in the Top-right corner of the chart. To change the legend position, expand Thechartcontrol.legend