| |

VerySource

 Forgot password?
 Register
Search
View: 1828|Reply: 12

Which expert helped me solve this problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-9 22:20:01
| Show all posts |Read mode
The client asked me to display the data in the database (the data is generated in real time) on the form (in the form of a graph), so that I can intuitively observe the dynamic changes of the data and better analyze the data. It is also required that these graphs can be displayed in the report and printed; also, these graphs must be able to be saved in Word or Excel format for data analysis.

The amount of data is relatively large, and it is impossible to display all the curves on a form. The customer requested to display a batch of data on the coordinate axis and then immediately display the next batch of data from the starting point of the coordinate axis. This is like an oscilloscope. After the entire X coordinate display is full, it is displayed from 0.) How can I achieve these requirements?
Which control is better? Hope you can provide examples or code!

Of course, I can draw points one by one in the form, but how can I display the data in the form of a graph on the report and Word, and Excel? How can I use a control and data instead of drawing the points one by one myself Source binding When the real-time data in the table itself is displayed in the control? What if the X-axis and Y-axis values ​​are not stored in the database but in an array?
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-11 13:18:01
| Show all posts
Coordinate axes, data points, etc. can be drawn by yourself.
For example, the user can drag to zoom in and draw in time.
Reply

Use magic Report

0

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Hong Kong

Post time: 2020-1-14 11:18:01
| Show all posts
mark
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-14 18:09:02
| Show all posts
Hehe, help me upstairs and I will give you a mark immediately!
Reply

Use magic Report

0

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Hong Kong

Post time: 2020-1-15 18:00:02
| Show all posts
I have never done it, but I have seen the sample that comes with the crystal report, and there are solutions
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-18 12:54:02
| Show all posts
what! You, the client, are more verbose than mine ...
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-18 16:54:01
| Show all posts
It's easy to use a crystal report
Reply

Use magic Report

0

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-19 00:18:02
| Show all posts
Crystal report with push mode
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-19 09:09:01
| Show all posts
Mark it, never done it, Bangding
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-24 08:18:01
| Show all posts
If you have such a curve drawing control, you should make it yourself
Generally, you should first create a PictureBox, and then draw the curve you want in PictureBox.
The method of drawing a graph generally determines the information of the x and y axes, such as the value of the axis apex, the major and minor scales, etc., and then the coordinates of each point can be analyzed and drawn in the PictureBox.
This also contains some questions
1. Such as curve fitting: polyline, least square method, spline, etc.
2. Whether the curve should be adaptive in real time, which means that the curve always occupies 2/3 of the vertical axis, etc.
Regarding the oscilloscope display, you can set up a buffer queue, such as 100 points. If a new point enters, the last point is discharged. The queue always maintains 100 points, so that it can be made into an oscilloscope-like function
Regarding storage, you can store it as a Bitmap so that users can use it for analysis.
Regarding the storage of excel, can all the data of these points be stored in excel?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list