Software FX Posted February 20, 2006 Report Share Posted February 20, 2006 1. If the chart is not scrollable, adding one point requires a recalculation of the X-Axis scale as all other bars become a little thinner. A whole re-paint is necessary. In other words you can not add the bar to the right of the existing bars because there is no room there. Using the Real-Time API along with scrolling will improve this time dramatically. 2. This is by design. If you want space to be reserved for say 100 bars then you need to set 100 points even if they are hidden, this is the only way Chart FX can know that you want space for 100 bars. If you set the number of points to say 3, who is ChartFX going to come up with the 100 you need ? Check out the Real-Time sample provided it does exactly what you need, it allocates a certain amount of points from the beginning and then it just replaces existing point in a FIFO basis. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 7, 2006 Report Share Posted March 7, 2006 Hi Francisco, What you are saying makes perfect sense for a chart with Open-High-Low-Close bars that are already filling the entire horizontal width of the chart. But my charts start off with only a small number of bars on the very left of the chart and lots of empty space on the right side of the chart. When I add new bars dynamically the previous bars do move closer together. The bars start off a little off-kilter (too far to the right) from their proper X-Axis values, and as bars are added, the previous bars squish together and get progressively less off-kilter. I think that the chart FX Open-High-Low-Close charts have a small visual glitch that plots Open-High-Low-Close bars too far to the right when the chart´s entire horizontal axis is not completely filled with Open-High-Low-Close bars, and instead shows only a few Open-High-Low-Close bars on the left of the chart. Thanks, Brook "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:cEvXhOkNGHA.2492@webserver3.softwarefx.com... > 1. If the chart is not scrollable, adding one point requires a > recalculation of the X-Axis scale as all other bars become a little > thinner. A whole re-paint is necessary. In other words you can not add the > bar to the right of the existing bars because there is no room there. > > Using the Real-Time API along with scrolling will improve this time > dramatically. > > 2. This is by design. If you want space to be reserved for say 100 bars > then you need to set 100 points even if they are hidden, this is the only > way Chart FX can know that you want space for 100 bars. If you set the > number of points to say 3, who is ChartFX going to come up with the 100 > you need ? > > Check out the Real-Time sample provided it does exactly what you need, it > allocates a certain amount of points from the beginning and then it just > replaces existing point in a FIFO basis. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted March 7, 2006 Author Report Share Posted March 7, 2006 > But my charts start off with only a small number of bars on the very left > of the chart and lots of empty space on the right side of the chart That empty space you mention needs to be occupied by something, using hidden values. See my previous answer in bullet 2. > I think that the chart FX Open-High-Low-Close charts have a small visual > glitch that plots Open-High-Low-Close bars too far to the right when the > chart´s entire horizontal axis is not completely filled with Can you post a screenshot of what you mean by this. A sample program that reproduces the situation would be even better as I will be able not only to tell that´s going on but how to possibly change your code to fix it. -- 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.