Proessentials is a very powerful industrial real-time drawing control developed by Gigasoft, and almost everyone who has ever used Proessentials thinks it is the most powerful chart control they have ever used. It can be applied to the real time curve drawing in the finance, science, engineering, commercial and other industries. The following Hui du Small compiled a summary of the developers in the use of proessentials encountered some of the problems, hoping to provide other users with a point of reference:
Question one: How to use proessentials V6 guides to mark coordinate data points
Answer: Please refer to the VC example in the number 105th example, the Createdatacursor () function of the
Penset (M_HPE, Pep_ncursormode,pem_datacross);
To
Penset (M_HPE, Pep_ncursormode,pecm_floatingxy);
You can achieve the effect you want.
Question two: How to get the proessentials chart current point y-axis value when the mouse is moving
Answer: What we can actually get with the mouse is a double value, and it's usually impossible for us to take a value that exactly matches the data point. So actually, the value you're going to take, I suggest you get the approximate value, that is, take the x,y coordinate of the current point and compare it to the marker point or data point that we set up to get the data point we set.
Question three: Proessentials the chart control does not respond to the mouse action to enlarge or shrink
Answer: Here is to remind you, the zoom function of the control is not what you think is the middle mouse button scrolling implementation scaling, but the middle key or left-click after dragging implementation. Zoom in the center of the area you choose.
That is, the middle key scrolling does not appear, but press and drag. Please note that if you understand it in the way I say, it can be done.
Question four: How to display a picture in proessentials with a map
When developing with ASP.net C #, the way to use the Proessentials control is to drag a control in the default1.aspx and drag one in the default2.aspx, where defautl.aspx is actually a picture, DEFAULT1 connection DEFAULT2, is the program can run, but when the default1 need to drag a lot of the same control, to use multiple default2.aspx also corresponding, so that will produce a lot of similar default2.aspx.
Answer: If you want to map the way to display pictures you can actually use multiple controls in the default2.aspx, unified mapping to the default1.aspx can be, regardless of drag and drop will not appear multiple pages. It is not necessary to have multiple pages to host the control.
Question five: How to turn a proessentials histogram into a linear graph
Answer: You need to change the histogram to a linear graph just by pego1. Peplot.method = Graphplottingmethod.bar changed to pego1.peplot.method= Graphplottingmethod.line can be implemented.
To use horizontal parallel lines, you need to pego1 the grid line. Pegrid.linecontrol = Gridlinecontrol.both; change to pego1.pegrid.linecontrol= gridlinecontrol.yaxis; You can achieve the effect you want
Note: Please repaint the control after the status has been modified, using PEGO1. Refresh ();
Question six: How to control the proportional size of a window when creating multiple coordinate windows with Proessentials
Answer: The Proessentials control internally sets the chart area evenly, and the size of each area is not currently controlled, and can only be determined in an equal way.
Question seven: Proessentials the entire x axis can be displayed as 24 hours of
Answer: Please set your control according to the following code:
DateTime dt = new DateTime (2009, 5, 18, 0, 0, 0);/Set start date is May 18, 2009 0 O'Clock Whole
DateTime DTE = new DateTime (2009, 5, 18, 23, 59,59);/Set Time May 18, 2009 23:59 59 seconds
Pesgo1.PeGrid.Configure.ManualMinX = dt. ToOADate ();;
Pesgo1.PeGrid.Configure.ManualMaxX =dte. ToOADate ();
This can be set to 24 hours a day.
Question eight: How to assign the date column to the x axis of the proessentials, and any subsequent column assigned to the Y axis
Y-axis from 0 to 10,x axis from 0 to 96, where the x-axis is divided into 24 large scale, each is divided into four small scale, now has been divided, problem 1: When the display to the outside does not show tick-marks, in the axes display tick marks; problem 2:x axis scale that doesn't show the original 1 to 24, Want to show such as 00:15-00:30, is the time period, at least large scale can be displayed.
Answer: First you want to use PesgoWeb.PeData.DateTimeMode = true; This setting, the X axis is set to the way the time is displayed. Then time is the standard time format such as: 00:12.
Double zoomsmallinterval = (1.0/1440.0);//Set the size of the time span, 1440 is the number of minutes in a day
Double StartTime =datetime.now.tooadate ()//time needs to be converted to double type
Pesgo1. Pegrid.configure.manualscalecontrolx= Manualscalecontrol.minmax;
Pesgo1. PeGrid.Configure.ManualMinX =starttime;
Pesgo1. PeGrid.Configure.ManualMaxX =pesgo1. PeGrid.Configure.ManualMinX + zoominterval;
The current timescale cannot set the size of the scale, it will automatically segment, and of course, the small scale can not be set.
Question nine: How to control the distance between each tick of the proessentials axis
Is that if the x-axis is a scale of one centimeter, the Y axis wants a scale of 0.5 centimeters.
Answer: About the length of the scale can not be controlled, usually we are set with the maximum and the minimum value, the middle set step is the span, but the length of the concrete can not control, because this and the size of the control and the size of the controls are related.
To use the maximum minimum value to control which areas can be displayed on the axis, use the following code
Pesgo1.pegrid.configure.manualscalecontroly= Manualscalecontrol.minmax;
Pesgo1.PeGrid.Configure.ManualMinY = 0;
Pesgo1.PeGrid.Configure.ManualMaxY = 1000;
This setting allows you to correctly set the maximum minimum value that it displays. The step size is automatically set.
Question 10: The problem of drawing horizontal curves with Proessentials
It is mainly the Y axis from 1 to the 10,x axis a total of 96 ticks, only one curve can be, and as long as the horizontal line, do not vertical lines.
Answer: If you want to use a simple diagram, you can't implement such an x axis, but you can do this with a science diagram. The specific methods are as follows:
Pesgo1.pegrid.configure.manualxaxisticknline= true;//The statement that must be set
Pesgo1.PeGrid.Configure.ManualXAxisTick =50;//Set X axis step unit collapse
Pesgo1.PeGrid.Configure.ManualXAxisLine =1;//Set the width of the line
The y-axis setting is very simple. The specific methods are as follows:
pesgo1.pegrid.configure.manualscalecontroly= manualscalecontrol.minmax;//set y-axis Max min to Custom
Pesgo1.PeGrid.Configure.ManualMaxY = 10;//Set y-axis upper bound
Pesgo1.PeGrid.Configure.ManualMinY = 0;//Set y-axis lower
The scale step you want to set the y-axis is the same as the x axis, except that the parameter names are somewhat different:
Pesgo1.pegrid.configure.manualyaxisticknline= true;//The statement that must be set
Pesgo1.PeGrid.Configure.ManualYAxisTick =50;//Set X axis step unit collapse
Pesgo1.PeGrid.Configure.ManualYAxisLine =1;//Set the width of the line
For example, if you want to set 96 x scales, all you have to do is assign the length value/96 Double value of the entire axis to the Manualxaxistick property.
Proessentials Latest edition free download address