ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  All Y values mapped to same X when I use setXData
Posted by TCat on Feb-28-2011 06:15
I'm using the .NET version of Chart Director, but in C++/CLI (added as a reference.)  Most of the functionality works fine (I just translate the C# examples into C++/CLI, and they work as-is), but when I do this:

            LineLayer ^pre2_layer = c->addLineLayer( pre2evo.m_FVSlice, 0x00FF00 );
            pre2_layer->setXData( pre2evo.m_TimeStamps );
            pre2_layer->setLineWidth( 2 );

All the points end up smashed together on 1 X value.  Put another way, all the y values are showing up on the same x value.  The m_TimeStamps was a very, very big number converted to a double.  When I inspect the array in the debugger, the values are fine, so I know the data is good.  Please assist.

  Re: All Y values mapped to same X when I use setXData
Posted by TCat on Feb-28-2011 06:21
I figured out this problem.  I just had to comment out the setLabels() function in the example code so that behavior didn't override the setXData later.