Jump to content
Software FX Community

Different number of points in series causes problem


User (Legacy)

Recommended Posts

I am creating graphs with a couple of series that have different number of points.  The one that has less points fills in the last few points with 0,0.  Then I get a weird graph that has 2 lines for the the same series where one is something wierd and the other is the one I want to see.  If you look at the picture you can see the straight lines going all through the graphs (one for yellow and 2 for each of the violet series), those are the bad ones.  You can also see where the good data starts (at the light blue point).

In the code, when loading the data I do the following...

m_pcfxGraph->OpenDataEx(COD_VALUES, nGraphs, nPoints);

m_pcfxGraph->OpenDataEx(COD_XVALUES, nGraphs, nPoints);

... loop here for all the points in each series...

m_pcfxGraph->XValueEx[seriesIndex][pointIndex] = xValue;

m_pcfxGraph->ValueEx[seriesIndex][pointIndex] = yValue;

... end loop ...

Does anyone know how to fix this problem? I would really appreciate any help. I have a deadline and this is killing me.

Thank you in advance,

Diana Tetelman

Link to comment
Share on other sites

All series have the same number of points. This number is specified in the call to OpenDataEx.

You can HIDE some points to make the series APPEAR to be different sizes but internally they all are the same size.

Use ChART_HIDDEN to set the value of the points to be hidden (at the end of the "shorter" series). The default value is ZERO (0).

You can also use COD_ALLOCHIDDEN in your OpenDataEx call to initialize all data to CHART_HIDDEN instead of ZERO

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Not in full version either!

<SW (A Patrick)> wrote in message

news:memo.20030304114425.241E@SW.0xb53d079e...

>

> > You can also use COD_ALLOCHIDDEN in your OpenDataEx call to initialize

=

> > all data to CHART_HIDDEN instead of ZERO

>

> Ah, just what I was wanting yesterday. Unfortunately COD_ALLOCHIDDEN is

> not in cfxocx.prg or the ChartFX API help file for the evaluation version

> off the CD supplied.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...