Hi pychart Fan,
For your case, you may add a scatter layer to specify the point where you want to put the
labels. The y-coordinates of the scatter layer should be an array of the same length as your
timeStamps array, but contain the coordinates of the labels. For example, if you want the
label to be at the "high price", then use the high price as the coordinate. If there is no label
in a particular trading session, uses NoValue as the coordinates. The scatter symbols can
be configured to be Transparent so it would not be visible. Then you can use the
addExtraField and setDataLabelFormat method to associate the labels to the scatter layer.
There is an example in ChartDirector 6.0 that demonstrates custom symbols in a financial
chart, in which the symbols are added using scatter layers:
http://www.advsofteng.com/doc/cdpython.htm#financesymbols.htm
For your case, you may set the symbols to transparent and associate the labels to the
transparent symbols.
Hope this can help.
Regards
Peter Kwan |