Home > Back-end >  How to use a chart production line chart in c #
How to use a chart production line chart in c #

Time:09-20

I wanted to do a line chart in c #, the figure of the X, Y data to data from the DataGridView, when in the DataGridView data can display this chart production line chart,

CodePudding user response:

Open the Microsoft Visual Studio 2010, the newly built/line chart of the program name,
2
On the interface to add [PictureBox] controls;
Add OWC11 reference,
C # how to create a line chart
C # how to create a line chart
3
Needs in the new program interface to join other controls: including,
For the Monday to Friday in the number of clock input box;
Produce line chart button,
C # how to create a line chart
4
Add button code [have]
If one day did not enter, the number of the error and exit,
C # how to create a line chart
5
Create a chart object; Specify the chart type as the line chart, set the vertical and the horizontal axis model,
C # how to create a line chart
6
Set a variable number of punch for Monday to Friday;
Set the total number of variables;
Cumulative number of clock for a week,
C # how to create a line chart
7
Add other line chart generated code,
C # how to create a line chart
C # how to create a line chart
8
Generated exe file test
C # how to create a line chart
9
If less input the number of clock in one day, the program will prompt wrong, to ensure the normal operation of the program,
C # how to create a line chart
10
Assumes that the company has 100 people, in the number of clock in Monday to Friday box input respectively 97, 99,89,95, 80, click on [have], you can see the generated line chart,
C # how to create a line chart
11.
In the number of clock in Monday to Friday box enter 79, respectively, 90,99,86, 98, click on [have], you can see the generated line chart,
C # how to create a line chart
  • Related