Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations Line graph

Creates the complex graphic item PmiCanvas configured as line graph.
 
This preconfiguration can be activated when creating a new graphic item and is included in the group: " / Trend, functions, chart".
 
This graphic item contains embedded PmiCanvas item named Dynamic. The item has the variable val1, val2 and valX of the string type containing semicolon-separated values. The binding can be used to connect it to the measured value of the same data structure. The variables of the parent item are accessible in onDraw event by using the pEvent.GetParentVar().
 
In the PmiCanvas graphic item, there are variables minX, maxX, minY, maxY, spaceX and spaceY. These variables define the scale range in both x and y axes and also the offset of axes from left and bottom edge.
 
Additional configuration variables are located at the beginning of context itself, or at the beginning of the user method. The following items can be set:
- colorScale color of segments and scale descriptions
- nMajY number of main segments on y axis
- nMinY number of secondary segments (between two main segments) on y axis
- nDescPer defines the quantity of displayed descriptors of main segments (0 = no, 1 = every main, 2 = every second main)
- nMajX number of main segments on x axis
- nMinX number of secondary segments (between two main segments) on x axis
- colorArea background color of the graph rendering area
- colorGrid grid color
- nGridPer defines quantity of displayed horizontal/vertical grid lines (0 = no, 1 = every main, 2 = every second main)
- nTextSize scale description text size

For embedded item

- ctx.lineWidth value represents the thickness of the rendered graph line
- ctx.strokeStyle value represents the color of rendered graph line
These configurators can be set before the preconfiguration is created:
Range from minimum (x)Lower limit of the x axis
Range to maximum (x)Upper limit of the x axis
Range from minimum (y)Lower limit of the y axis
Range to maximum (y)Upper limit of the y axis
Values (x)Base values on the x axis separated by semicolon
Graph line thicknessGraph line thickness
1. Graph line colorGraph line color
2. Graph line colorGraph line color
Emulation in the onRefresh eventEmulation in the graphic item event onRefresh
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice