.Net Chart Control A powerful component for convenient charting.
More
convenience more functionality in Ver. 3.5 |
|||||||
|
|
Simple Windows Form Application |
| Click
here to get sample solution for .NET Framework 1.1 (VS 2003). Click here to get sample solution for .NET Framework 2.0 (VS 2005). |
| Creation of the simple windows forms application that uses Chart Control .NET (Manco.Chart control for .NET) as easy as 1-2-3. Probably you will spend more time on customizing chart XML document then on coding application itself. |
|
Let see how it could be done on practice. At the first we should create simple chart desktop application.
Prepare XML chart document or customize existing one and put it to the folder near the application executable (bin\Debug or bin\Release). You can find ready to use chart XML document in the sample solution or in the Manco.Chart.Demo Application that has been installed with chart control. |
Add code to load chart XML document and draw chart to the form’s On Load event
handler. It could looks like the following:
private XmlDocument xmlChart; private void Form1_Load(object sender, System.EventArgs e) { xmlChart = new XmlDocument(); xmlChart.Load(Path.GetDirectoryName(Application.ExecutablePath) + "\\IntroChart.xml"); chartControl.ChartDocument = xmlChart; chartControl.Draw(); } |
| Copy Art folder from the Chart Control .NET installation folder to the folder where your executable is located (bin\Debug or bin\Release). |
|
Run your application. You will see the chart that looks as it was specified in the chart XML document.
|
Is it easy? Do you think that the picture is all what you have? No! Actually you have much more without any coding. There are few context menus available in the different part of chart. Using these menus you can change chart appearance as you'd like. Just right click on the different chart areas to see menu command available for customization of the area.
|
|
Title’s context menu
Title’s context menu allows you change title align, view and edit title’s parameters and delete title. This menu appears when you right-click any title in the chart (in the titles or footers, categories, series or value title). |
|
Frame’s context menu
Frame’s context menu allows you change frame’s parameters, add new title or footer. This menu appears when you right-click any chart region that is free from the other chart elements. |
|
Legend’s context menu
Legend’s context menu allows you change legend placement and legend’s parameters. This menu appears when you right-click legend area. |
|
Plot Area context menu
Plot Area context menu allows you change chart type; layout, plot area, chart specific and element parameters; scale and grid appearance and parameters. |
|
3D Chart Plot Area context menu
In case when 3D chart is shown Plot Area context menu contains also menu item that allows you change some 3D parameters (clustering, using box shape, jittering, transformation and coordinate plane). |
|
Parameters context menu
When you right-click specific area (label, chart element) you will get the context menu that allows change parameters of this element. |
Lets change color of the chart element. Right click on one of the chart columns. You will see the parameters context menu.
Click "Parameters". You will see parameters form for selected element.
Click colored button under the "Fill Type" and select desirable color. Click "OK" button on the parameters form. You will see chart with color of one of the series changed.
|
| Play now with other context menues and see how they works. Back to main page of .Net Chart |
| Click
here to get sample solution for .NET Framework 1.1 (VS 2003). Click here to get sample solution for .NET Framework 2.0 (VS 2005). |
|
|
| Copyright © 1994-2005 .Net Charting Software Inc. | Division of ASE | contact us | about us | clients | privacy policy | Add link | .Net resources | Free services |