SRGraphDisplay::PrepareVector
voidSRGraphDisplay::PrepareVector(void)
This function is called before the actually drawing of the chart.
It prepares the X axis and Y axis scale for the Vector chart type.
Four data groups define a set of vectors. In each set, the data in the first and second groups are the x and y coordinates of the vector's anchor point. The data in the third group and fourth groups are Angle (in degrees from vertical, increasing clock-wise) and Magnitude of the vector for CX_GRAPH_VECTOR_C and CX_GRAPH_VECTOR_E chart types. For CX_GRAPH_VECTOR_G, the third and fourth groups are the x-offset and y-offset of the head relative to the tail. If the data doesn't satisfy these requirements, an exception will be thrown.
By default, the vector magnitude is assumed to have the same scaling (units) as the x and y coordinates.
For CX_GRAPH_VECTOR_C and CX_GRAPH_VECTOR_E, alternate scaling can be selected by setting SetUseMaxScale(TRUE) and specifying SetMaxObjectWidth(). GetMaxObjectWidth() determines the size of the largest bubble in screen pixels -- the size is adjusted for printing.
Logarithmic axes are not supported -- an exception is thrown.
The x and y axes can use fixed or automatic scaling independently.
Defined in: SRGraphDisplay.cpp
Return Value
void