<div class="gmail_quote">On Mon, Oct 18, 2010 at 11:35 AM, Barney Sperlin <span dir="ltr">&lt;<a href="mailto:bsperlinus@yahoo.com">bsperlinus@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hello, beginner question:<br>     Data I&#39;m reading is not getting charted.<br>     After reading a space-delimited file of stock market data I&#39;m trying to view a chart of this and the chart comes out as a single straight line at a 45° angle.  There should be 2 lines, neither of which are straight.  I suspect that both are being plotted, one on top of the other.<br>
</td></tr></tbody></table></blockquote><div><br></div><div>You seem to be using a mixture of the old and new chart APIs. If you want to use the new chart API then the mapper stuff and the polyline code is not necessary. If you would like to stick with the old API then getting rid of vtkContextView, vtkChartXY etc would be the right thing to do.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">     When I break the program in the reading loop the values appear correctly so I think that reading the file is not the problem.  Is the data getting into the table?  Debugging doesn&#39;t show it.  Is the table transferring properly to the chart?<br>
     I&#39;m using C++ in VS 2005 Express.<br>     Below is my code, largely taken from an online example:<br></td></tr></tbody></table></blockquote><div><br></div><div>Which example did you get the charting stuff from?</div>
<div><br></div><div>Marcus</div></div>