User (Legacy) Posted March 16, 2006 Report Share Posted March 16, 2006 Hi, I have an Open-High-Low-Close chart on which I am plotting only 72 bars on at any one time, using the Chart FX API and a for loop instead of databinding. I start with a DataTable with more than 72 rows (say about 120). I plot all the 120 points, but then choose a chart.AxisX.Min value that puts only the last 72 points on the chart's display area. When I do this, the chart looks good with the exception of the Y-Axis on the left side of the chart. On it are printed all the Open-High-Low-Close bars that have X-Values less than the chart.AxisX.Min value. As time goes on, I plot real-time Open-High-Low-Close bars on the right side of the chart, and increment the chart.AxisX.Min value by 1 to move the first point off of the chart. When I do this, the point that I wanted to remove from view is now also squished up against the Y-Axis. As time goes on, the Y-Axis collects more and more bars that I did not want to appear within view, until the Y-Axis is just one big block of color. Is there a way that I can prevent the Open-High-Low-Close bars that have X-Values less than the chart.AxisX.Min from showing up as a mess against the Y-Axis? I would like them to still exist in the chart's chart.Data collection without Chart.Hidden values if possible. Thanks in advance for your help. Brook Link to comment Share on other sites More sharing options...
Software FX Posted March 17, 2006 Report Share Posted March 17, 2006 A non X/Y chart such as bar or high-low-close, can not be clipped in the X-Axis by manipulating the X-Axis min and Max. To show only a portion of the bars contained in the chart, you can use AxisX.SetScrollView. As you add more points to the chart, you can use Axis>ScrollPosition to move the view. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 17, 2006 Author Report Share Posted March 17, 2006 Hi, Thank you for the quick response. I made the chart.AxisX.Min = 0 and the chart.AxisX.Max = myLargestXValue + 2, and then used chart.AxisX.SetScrollView(myLargestXValue + 2, myLargestXValue + 2 - 72) to scroll to only the last 70 or so points. Unfortunately, the problem is still occurring. All the Open-High-Low-Close bars whose X-Values are out of the range of visible X-Values are still all printed along the Y-Axis. With scrolling, when the user scrolls left or right, the Open-High-Low-Close bars that were on the screen but just got scrolled off of the screen also get displayed up and down the Y-Axis, in a big vertical jumble. If the values get scrolled off to the left, they appear on the Y-Axis on the left side, and if they get scrolled off to the right, they appear on the Y-Axis on the right side. Is there a way that I can stop the chart from displaying all out of bounds Open-High-Low-Close bars on the left and right Y-Axes? Thanks, Brook "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:4QEAH8dSGHA.3188@webserver3.softwarefx.com... >A non X/Y chart such as bar or high-low-close, can not be clipped in the >X-Axis by manipulating the X-Axis min and Max. > > To show only a portion of the bars contained in the chart, you can use > AxisX.SetScrollView. > > As you add more points to the chart, you can use Axis>ScrollPosition to > move the view. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted March 24, 2006 Report Share Posted March 24, 2006 I am unable to reproduce this problem. Please provide a test program that reproduces the problem. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.