I'm using a chart with many tlineseries, and am colouring individual points on each series with ongetpointerstyle. Works fine except when the series hold null values.
data is array of x,y,z (z is a variable value, eg. water depth)
if some_condition then
chart.series[series_no].AddXY(x,y)
else
chart.series[series_no].AddNullXY(0,0);
then in the chartseriesgetpointerstyle I have code that
get the value of z from data records using the valueindex passed to
the method, and set the valuecolor[valueindex] according to a palette.
This all works okay except when there are nulls. How can I test in the
getpointerstyle method if an x,y point s null. Something like
if chart[series_no].isnull[valueindex] ??
thanks
Sean
nulls and colour of pints on tlineseries
-
- Newbie
- Posts: 48
- Joined: Fri Mar 12, 2004 5:00 am
-
- Newbie
- Posts: 48
- Joined: Fri Mar 12, 2004 5:00 am
Hi seanmurphy,
Yes, there is the method IsNull(ValueIndex) for series that returns a boolean.seanmurphy wrote:How can I test in the getpointerstyle method if an x,y point s null. Something like if chart[series_no].isnull[valueindex] ??
Yes, OnGetPointerStyle event is fired only for non-null values.seanmurphy wrote:ongetpointerstye behaves of valueindex does not count null data
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |