Visit Gigasoft's Web Site
ProEssentials v11 Help

Methods in JavaScript

 

Methods carry the same names in JavaScript as in .NET. They hang off PeFunction, spelled exactly as the desktop spells them, so a property block transcribed from a WinForms, WPF or WinUI application calls them unchanged.

 

This was not true before 08/18/2026. Earlier builds carried only lower-case aliases on the control, and code written against the desktop spelling raised a TypeError. It no longer does.

 

How Many, Per Chart Object

The method surface follows the chart object, the same way the property surface does. A method that has no meaning for a chart type is not present on it.

 

Object

Methods

Pego

18

Pesgo

20

Pe3do

13

Pepso

11

Pepco

8

 

On Every Chart Object

.NET

JavaScript

Notes

ReinitializeResetImage PeFunction.ReinitializeResetImage() Applies pending property writes and re-images. The desktop call every property block ends with.
Reinitialize PeFunction.Reinitialize() Applies pending writes without re-imaging.
Reset PeFunction.Reset() Returns every property to its default.
ResetImage PeFunction.ResetImage(0, 0) Re-images at the current size. A non-zero size is refused -- the web control owns its size, so call chart.setSize(w, h) instead.
DrawTable PeFunction.DrawTable(nTable)  
GetHotSpot PeFunction.GetHotSpot(x, y) Runs a hit test and returns the type. With no arguments it tests at the last mouse position and returns the full data object.
GetHotSpotData PeFunction.GetHotSpotData() Reads the struct the last test filled and runs no new test. Returns type, data1, data2 and rect. This is what an event handler calls.
GetRectGraph PeFunction.GetRectGraph() Returns left, top, right, bottom, width, height, ok.

 

On The X/Y Chart Objects

SearchSubsetPointIndex is on Pego and Pesgo; SetExtraAxisX and SetExtraAxisTX are on Pesgo alone. Pego and Pesgo carry all of the others. Pepso carries ConvPixelToGraph, GetGraphLoc and UndoZoom; Pe3do and Pepco carry none of them.

 

.NET

JavaScript

Notes

GetRectAxis PeFunction.GetRectAxis(n) With no argument, reads the axis Grid.WorkingAxis currently points at. With n, reads that axis and puts the working axis back.
GetRectZoomWindow PeFunction.GetRectZoomWindow()  
GetGraphLoc PeFunction.GetGraphLoc() Describes the last hit test and has no freshness flag. Call GetHotSpot(x, y) first, or read it inside a PeGraphHotSpot handler.
ConvPixelToGraph PeFunction.ConvPixelToGraph(x, y, opts) .NET passes five ref parameters; they cannot cross this boundary, so the inputs are arguments and the outputs are the returned object. opts takes axisIndex, rightAxis, topAxis, viceVersa.
UndoZoom PeFunction.UndoZoom() Runs the engine own menu command, so it raises PeZoomOut exactly as a Undo Zoom from the menu does.
GetSpringDayLight PeFunction.GetSpringDayLight() Returns all nine time fields.
GetFallDayLight PeFunction.GetFallDayLight() Returns all nine time fields.
SetSpringDayLight PeFunction.SetSpringDayLight(month, day, hour) Zeroes Year, Minute, Second, MilliSecond and YearDay, exactly as the desktop method does.
SetFallDayLight PeFunction.SetFallDayLight(month, day, hour) Same, and the same zeroing.
SearchSubsetPointIndex PeFunction.SearchSubsetPointIndex(x, y) Which data point is nearest a pixel, as opposed to what is under it -- that is GetHotSpot. Returns {x: -1, y: -1} when nothing is found, so test the result before reading it.
SetExtraAxisX PeFunction.SetExtraAxisX(min, max, label, ...) An extra bottom-X axis. Pesgo only. Purely visual -- .NET's own summary says these are not associated with any data. Set Grid.WorkingAxis first.
SetExtraAxisTX PeFunction.SetExtraAxisTX(min, max, label, ...) The same, for a top-X axis. Pesgo only.

 

On Pe3do Only

.NET

JavaScript

Notes

GetViewingAt PeFunction.GetViewingAt()  
SetViewingAt PeFunction.SetViewingAt(x, y, z)  
GetLight PeFunction.GetLight(index) Returns the values as written, plus working, the engine own scaled copy. A caller proving a light took should read working, not its own input.
SetLight PeFunction.SetLight(index, x, y, z)  
PEreconstruct3dpolygons PeFunction.PEreconstruct3dpolygons()  

 

Two That Have No .NET Twin

ctl.render()The call every chart ends with, and the one this help teaches. It does what ReinitializeResetImage does on the desktop. See the Walkthrough.
ctl.flush()Pushes pending property writes to the engine without drawing. Rarely needed; render() flushes first.

 

The Rest Of The Method Reference

The other methods in this reference are not callable from JavaScript in v11, and they say so when you call them. They are present on PeFunction and each one throws with the reason it is not backed, rather than failing as an undefined function. Their names are also listed on PeFunction.NotAvailable, so a page can check without calling one.

 

They are the families that have no meaning in a browser: printing (PrintGraph and its Ex form), the Win32 object store (SaveObjectToFile, LoadFromURL and their stream siblings), the Partial family, resource-DLL swapping and ActiveX serialization.

 

How many depends on the chart object, because a method absent from an object entirely is not listed there: 17 on Pego and Pesgo, 16 on Pepso, 14 on Pe3do and Pepco.

 

A method topic with no JS line at the top is one of these. Nothing about it applies to a browser chart in this release.

 

Jagged Data Is Separate

SetJaggedPointsX and GetJaggedPointsX, with their Y and Z siblings, hang off PeData as they do in .NET, not off PeFunction.

 

See also ProEssentialsJS Overview, JS / .NET Events Reference, JS / .NET Charts Reference.