nulls and colour of pints on tlineseries
Posted: Fri Feb 20, 2009 6:43 pm
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
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